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일

0 개 추천

For i=1:1951
InitialBeginningMinusOne = 0;
InitialEndingMinusOne = 49;
Range = [(InitialBeginningMinusOne+i), (InitialEndingMinusOne+i)]
end
Something like that?

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2017년 4월 10일

답변:

2017년 5월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by