Skip to content
Snippets Groups Projects
Commit 77422b48 authored by Achilles Kappis's avatar Achilles Kappis
Browse files

Simplify the addition of the integral part of the delay in winSincFracDel.m

parent e655b9f4
No related branches found
No related tags found
1 merge request!3Update to v0.2.3
......@@ -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))];
% ====================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment