Matlab Code: Overlap Save clc; clear all; close all; N=8;%%choose as required x=[1 -1 2 -1 2 3 4 2 1 -5 1 -1 3 5 1 6 1 2 3 4]; h=[2 3 -1 2]; M=length(h); L=N-(M-1); %%choose L as desired or choose N as the power of two, if the answer is not the power of two, then choose some N which satisfies "N >L+(M-1)" x_tilde=[zeros(1,M-1), x,zeros(1,L)];%%%Here zeros(1,L) is optional (but better to include to avoid missing a few samples from the end of the output sequence h_tilde=[h,zeros(1,(L-1))]; H=fft(h_tilde); k=0;y_out=[]; while (k+N)
Very good 👍
Very well explained. Thank you. 👌I understand now, where I feel confident in implementing the idea into scripts i write. ✔️ thank you. 👌
Glad it was helpful!
excellent explanation, we appreciate your effort!
Many thanks!
Such a great explanation 👏
Thanks
Nice explaination
Thanks
very nice sir 👍
Thanks
Good explanation sir
Thanks
thank you
You're welcome
Matlab Code: Overlap Save
clc;
clear all;
close all;
N=8;%%choose as required
x=[1 -1 2 -1 2 3 4 2 1 -5 1 -1 3 5 1 6 1 2 3 4];
h=[2 3 -1 2];
M=length(h);
L=N-(M-1); %%choose L as desired or choose N as the power of two, if the answer is not the power of two, then choose some N which satisfies "N >L+(M-1)"
x_tilde=[zeros(1,M-1), x,zeros(1,L)];%%%Here zeros(1,L) is optional (but better to include to avoid missing a few samples from the end of the output sequence
h_tilde=[h,zeros(1,(L-1))];
H=fft(h_tilde);
k=0;y_out=[];
while (k+N)
Thanks
Very good👍