(New page: function y = convo(x,h) % creating a MATLAB function convo that calls upon two vectors x and h to be convoluted. X = fft([x zeros(1,length(h)-1)]); H = fft([h zeros(1,length(x)-1)]); y = ...) |
|||
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
function y = convo(x,h) | function y = convo(x,h) | ||
% creating a MATLAB function convo that calls upon two vectors x and h to be convoluted. | % creating a MATLAB function convo that calls upon two vectors x and h to be convoluted. |
Revision as of 16:38, 1 July 2009
function y = convo(x,h) % creating a MATLAB function convo that calls upon two vectors x and h to be convoluted.
X = fft([x zeros(1,length(h)-1)]); H = fft([h zeros(1,length(x)-1)]); y = ifft(X.*H);