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

 Respuesta aceptada

Stephen23
Stephen23 el 26 de Feb. de 2015
Editada: Stephen23 el 12 de Sept. de 2023

0 votos

1 comentario

Rachel Baumgarten
Rachel Baumgarten el 26 de Feb. de 2015
Thank you so much! This was exactly everything I needed, and it all seems to work this way! Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 26 de Feb. de 2015

Editada:

el 12 de Sept. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by