フィルターのクリア

How can I store 3 values of a sequence and iterate?

2 ビュー (過去 30 日間)
Mariana
Mariana 2020 年 2 月 14 日
コメント済み: darova 2020 年 2 月 14 日
Input = [1,2,3,4,5,6,7,8,9,10,11,12];
Buffer= zeros(min(4,10000),1);
first = 1;
last = 4;
Buff_size = 3;
step = 1;
keeplooking = true;
while keeplooking == true %infinite loop
% Buffer= zeros(min(4,10000),1);
Buffer(1:4)= Input(first:last);
start = step + last;
last = start + Buff_size;
end
Why I am not able to continue the while loop?
I have the following error: In an assignment A(:) = B, the number of elements in A and B must be the same.
when Buffer(1:4)= Input(first:last); are from the same size....
  4 件のコメント
Mariana
Mariana 2020 年 2 月 14 日
Why if I try to do the same method in simulink it doesnt works?
darova
darova 2020 年 2 月 14 日
I don't know how to use Simulink

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by