'for' loop for sliding

1 回表示 (過去 30 日間)
Nay Rein
Nay Rein 2017 年 4 月 10 日
回答済み: Jacob Mevorach 2017 年 5 月 30 日
I have have to make the sliding window for 2000 points. The sliding window must start from 1 to 50, after that it must start again from 2 to 51 and so on until 2000. It has only one statement. Could you someone please tell me how to make the control loop for this task. With big respect!
  1 件のコメント
Jan
Jan 2017 年 4 月 10 日
You forgot to mention what should happen the data inside the sliding window.

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

回答 (1 件)

Jacob Mevorach
Jacob Mevorach 2017 年 5 月 30 日
For i=1:1951
InitialBeginningMinusOne = 0;
InitialEndingMinusOne = 49;
Range = [(InitialBeginningMinusOne+i), (InitialEndingMinusOne+i)]
end
Something like that?

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

タグが未入力です。


Translated by