Skip to content

Commit

Permalink
Fix convolution() for Octave
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Aug 22, 2016
1 parent 1854579 commit 47a8263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SFS_general/convolution.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
Z = bsxfun(@times,fft(x,N,1),fft(y,N,1)); % automatically adjusts sizes
% IFFT
if isreal(x) && isreal(y)
z = ifft(Z,[],1,'symmetric');
z = real(ifft(Z,[],1));
else
z = ifft(Z,[],1);
end

0 comments on commit 47a8263

Please sign in to comment.