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 Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!