Azzera filtri
Azzera filtri

'for' loop for sliding

5 visualizzazioni (ultimi 30 giorni)
Nay Rein
Nay Rein il 10 Apr 2017
Risposto: Jacob Mevorach il 30 Mag 2017
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 Commento
Jan
Jan il 10 Apr 2017
You forgot to mention what should happen the data inside the sliding window.

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Entering Commands in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by