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

조회 수: 1 (최근 30일)
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);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by