Need helpt o create convolution with two finite-length arrays, x and h, reutrning array, y

1 view (last 30 days)
Please help!!
Using a second convolution function in Matlab that basically implements a real time convolution sstrategy:
function y= con_rt(x, h)
%% Real-time Convolution
% Real-time convolution #1
x = [1 4 2 6 5];
h = [4 -1 3 -5 2];
testlab2a;
testlab2a(x, h);
% Real-time convolution convolution #2
testlab2a(h, x);
% Real-time convolution #3
x = cos(2 * pi * (1:50000) / 16); % nice, big sequence
h = ones(1, 10);
testlab2a(x, h);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!