Cycle through arrays in for loop

2 views (last 30 days)
J M
J M on 14 Nov 2015
Edited: Stephen23 on 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)).

Accepted Answer

Stephen23
Stephen23 on 14 Nov 2015
Edited: Stephen23 on 25 Jun 2019

More Answers (1)

Walter Roberson
Walter Roberson on 14 Nov 2015

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!