'for' loop for sliding

1 次查看(过去 30 天)
Nay Rein
Nay Rein 2017-4-10
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 CenterFile Exchange 中查找有关 Language Fundamentals 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by