Hi, I have collected data from approx. 100 participants in my study where each row corresponds to (x-axis coordinates only) mouse movements of a particular stimulus. I would like to automate the extraction of the data from all matrices for each row into a new matrix, i.e. all row1s of the 100 matrices end up in Matrix1, all row2s end up in Matrix2 etc.
1. all files are labeled path_person_[# of participant].mat, e.g. path_person_3.mat for participant 3.
2. only extract data from every 100th column (there are 30,000 columns)
3. all files are in the same folder.
How can I achieve that? Thank you!
Ok, I think I've been using the system incorrectly - I kept commenting on answers rather than posting my questions under "answers".
First, thanks for answering my "complaint" about not getting emails. I will check every few days now.
However, the more pressing questions I had were these:
I activated the file with my participant data and entered the above code into the command window and nothing happened. How do I tell matlab that I want it to access all path_person_[# of participant].mat files and extract a particular row. The above code comes back with "??? undefined variable M."
Also, where does the above line put the data? What will be the name of the file? Will it be saved in the file where I have the original data? Will I have to go through the program 196 times (once for every stimulus) x 80 times (number of participants) to extract the data for all my stimuli one by one, changing the row #? Thanks!