Azzera filtri
Azzera filtri

Cycle through arrays in for loop

2 visualizzazioni (ultimi 30 giorni)
J M
J M il 14 Nov 2015
Modificato: Stephen23 il 25 Giu 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)).

Risposta accettata

Stephen23
Stephen23 il 14 Nov 2015
Modificato: Stephen23 il 25 Giu 2019

Più risposte (1)

Walter Roberson
Walter Roberson il 14 Nov 2015

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by