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

2 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by