Loop on Dynamic Variable
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Rachel Baumgarten
il 26 Feb 2015
Modificato: Stephen23
il 12 Set 2023
I am trying to create code with a loop to analyze data. I have several pieces of data named by variables where the only difference in name is the final number
i.e.
RBLab3_Dynamics_AngAccel_1
RBLab3_Dynamics_AngAccel_2
I am trying to figure out how I can write just one matlab code, and allocate (?) a letter or something of the like to represent the number, and then run the whole thing for a for loop 1:7 (I have seven trials). I also am trying to have parts of this code create variables ALSO defined by the number. In case I am not being clear, I mean I want to create a code where I can run a loop, and on the first iteration (1), I can both use an array called "RBLab3_Dynamics_AngAccel_1" and create an array called "Angle1"
Thank you for any help
0 Commenti
Più risposte (0)
Vedere anche
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!