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

2 views (last 30 days)
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.

Answers (0)

Categories

Find more on Cell Arrays in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!