Cycle through arrays in for loop

2 vues (au cours des 30 derniers jours)
J M
J M le 14 Nov 2015
Modifié(e) : Stephen23 le 25 Juin 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)).

Réponse acceptée

Stephen23
Stephen23 le 14 Nov 2015
Modifié(e) : Stephen23 le 25 Juin 2019

Plus de réponses (1)

Walter Roberson
Walter Roberson le 14 Nov 2015

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by