Cycle through arrays in for loop

2 Ansichten (letzte 30 Tage)
J M
J M am 14 Nov. 2015
Bearbeitet: Stephen23 am 25 Jun. 2019
I am trying to cycle through several array in a for loop. The for loop will plot each array and eventually make a animation (writeVideo). My arrays are named y0 through y500. How can I cycle through them such that I can access each array as for i =0:500, plot(x,y(i)).

Akzeptierte Antwort

Stephen23
Stephen23 am 14 Nov. 2015
Bearbeitet: Stephen23 am 25 Jun. 2019

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 14 Nov. 2015

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by