Quick way to import data from multiple subjects into one array?

2 visualizaciones (últimos 30 días)
Andrew You
Andrew You el 5 de Nov. de 2020
Comentada: Star Strider el 5 de Nov. de 2020
Hi. I extract data (for example 10 time points) from each subject which gets saved into a text file which I am able to import into matlab creating a 10 x 1 array. I want to be able to create an array in which the columns represent each subjects data so that it will automatically (assuming 6 subjects) creates a 10 x 6.
I have the imported text files named like performance_sub1, performance_sub2.. etc... I would like an array just called performance with all 6 subjects in that array.
I assume a for loop is needed, but I don't know how to call the numbers after "sub" in my files.
Any help would be appreciated.

Respuestas (0)

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by