Info

この質問は閉じられています。 編集または回答するには再度開いてください。

im new to matlab, does any one know , how to iterate 8 times ?

1 回表示 (過去 30 日間)
pavan Kumar babu
pavan Kumar babu 2019 年 9 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
,h=[.482962913145,.836516303738,.224143868041,-1.2940952251];
convolve(h,h/2(in time));
convolve(h/2,h/4);.....up to 8 times
  1 件のコメント
Jon
Jon 2019 年 9 月 17 日
Did this answer your question?

回答 (1 件)

Jon
Jon 2019 年 9 月 16 日
You could do this with a for loop, something like this
h=[.482962913145,.836516303738,.224143868041,-1.2940952251];
numIter = 8; % number of iterations
% preallocate array to hold results, one row for each convolution
R = zeros(numIter,2*length(h)-1);
for k = 1:numIter
R(k,:) = conv(h/(2^(k-1)),h/(2^k));
end

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by