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

Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!