'for' loop for sliding

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 comentario

Jan
Jan el 10 de Abr. de 2017
You forgot to mention what should happen the data inside the sliding window.

Iniciar sesión para comentar.

Respuestas (1)

Jacob Mevorach
Jacob Mevorach el 30 de Mayo de 2017

0 votos

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

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 10 de Abr. de 2017

Respondida:

el 30 de Mayo de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by