how can I change variable inside for loop?

I have 4 data sets data1,data2,data3 and data4. all of them have size of 100 x 2. I want to delete the second column of each data set. I want to use for loop so that it automatically takes data1, followed by data2 and so on.
Additionally, If I want to save names from 1 to 12 e.g if I have 12 data sets and instead of manually assigning names as data1, data2,data3...data 12, I want to use loop for assigning names. thanks

답변 (0개)

카테고리

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

태그

질문:

2020년 11월 12일

댓글:

2020년 11월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by