From 77422b4892a5438a0f434eeccee7fe11564b5b58 Mon Sep 17 00:00:00 2001
From: ZaellixA <axilleaz@protonmail.com>
Date: Sat, 14 Sep 2024 09:19:29 +0100
Subject: [PATCH] Simplify the addition of the integral part of the delay in
 winSincFracDel.m

---
 Signal Processing/Generic/MATLAB/Functions/winSincFracDel.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Signal Processing/Generic/MATLAB/Functions/winSincFracDel.m b/Signal Processing/Generic/MATLAB/Functions/winSincFracDel.m
index dde7fd2..3fcfcd6 100644
--- a/Signal Processing/Generic/MATLAB/Functions/winSincFracDel.m	
+++ b/Signal Processing/Generic/MATLAB/Functions/winSincFracDel.m	
@@ -172,9 +172,7 @@ function [sincFilt, causDel, dSig] = winSincFracDel(del, len, winFun, sig, sigLe
     sincFilt = sincFilt .* win;
 
     % Add the integral delay
-    intDel = zeros(fix(del) + 1, 1); intDel(end) = 1;
-    sincFilt = conv(sincFilt, intDel);
-    sincFilt = sincFilt(1:len);
+    sincFilt = [zeros(1, fix(del)), sincFilt(1:end - fix(del))];
 
 
     % ====================================================
-- 
GitLab