fixed convolution logic
This commit is contained in:
parent
33fd3418fd
commit
c989894399
@ -5,7 +5,7 @@ function x = Daniel_Doan_convolution(f,h)
|
|||||||
%author: Daniel Doan
|
%author: Daniel Doan
|
||||||
|
|
||||||
%padding to ensure the entire convolution is calculated
|
%padding to ensure the entire convolution is calculated
|
||||||
pad = length(f) + length(h) - 1;
|
pad = length(f);
|
||||||
%take FT of f
|
%take FT of f
|
||||||
F = fft(f, pad);
|
F = fft(f, pad);
|
||||||
%take FT of h
|
%take FT of h
|
||||||
|
Reference in New Issue
Block a user