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

 채택된 답변

Stephen23
Stephen23 2015년 2월 26일
편집: Stephen23 2023년 9월 12일

0 개 추천

댓글 수: 1

Rachel Baumgarten
Rachel Baumgarten 2015년 2월 26일
Thank you so much! This was exactly everything I needed, and it all seems to work this way! Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

질문:

2015년 2월 26일

편집:

2023년 9월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by