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 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by