fixed convolution logic

This commit is contained in:
Arthur Lu 2021-12-12 23:37:36 -08:00
parent 33fd3418fd
commit c989894399
2 changed files with 1 additions and 1 deletions

BIN
app.mlapp

Binary file not shown.

View File

@ -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