Borrar filtros
Borrar filtros

Cycle through arrays in for loop

2 visualizaciones (últimos 30 días)
J M
J M el 14 de Nov. de 2015
Editada: Stephen23 el 25 de Jun. de 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)).

Respuesta aceptada

Stephen23
Stephen23 el 14 de Nov. de 2015
Editada: Stephen23 el 25 de Jun. de 2019

Más respuestas (1)

Walter Roberson
Walter Roberson el 14 de Nov. de 2015

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by