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

Respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 12 de Nov. de 2020

Comentada:

el 12 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by