extract same row from multiple matrices
古いコメントを表示
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!
4 件のコメント
Image Analyst
2012 年 11 月 26 日
Is the data integer or floating point? What does it say when you say "whos x" in the command window?
Azzi Abdelmalek
2012 年 11 月 26 日
how many files? what does contain each file?
Sabine
2012 年 11 月 29 日
Sabine
2012 年 11 月 29 日
回答 (2 件)
per isakson
2012 年 11 月 29 日
Your matrix, M, is 50MB. Try
M1 = M( :, [ 1 : 100 : 30000 ] );
4 件のコメント
Sabine
2013 年 1 月 7 日
Image Analyst
2013 年 1 月 7 日
Make sure the email in your profile matches the one you want to use and is not some old, unused one. Contact files@mathworks.com if it continues to be a problem. Remember to check back here for answers. No sense waiting 6 weeks for an answer.
Jan
2013 年 1 月 7 日
I do not have the impression that the email notifications are reliably. Sometimes I get 8 notifications in some minutes from the FileExchange, then no further messages for the next year. Comments to the question do not trigger a notification (or at least did not), although this is important.
Sabine
2013 年 1 月 11 日
Sabine
2013 年 1 月 11 日
0 投票
1 件のコメント
Image Analyst
2013 年 1 月 11 日
You were using it correctly (until now). What you posted here is not an answer to your original question, is it? No, so it should either be a comment to someone who answered your question, or an edit of your original question to clarify it. If you don't get emails when comments are added, then that is a deficiency of the forum. Regardless, questions are often answered quickly here - in minutes or hours - so you should check back frequently for updates.
カテゴリ
ヘルプ センター および File Exchange で Install Products についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!