How to reshape matrix
Show older comments
Hi everybody, I have matrix which consist of 2340 (results for 26 subject x 90 variable value for each subject) rows and 5 columns (different variables for the same subjects of experiment) and my problem is to resize this matrix by extracting first 45 rows subset of each subject (45x26) in one column,while second half of 45 rows for each subject should be in the next column. I would really appreciate any help.
1 Comment
Your matrix is 2340 x 5. Then you say you want to extract the first half of data from each subject which would be size 45x26. You lose me there. Wouldn't it be 45x8 for each subject resulting in 1170x8 matrix? Also how can you put 1170x8 matrix into 1 column of another matrix? Please provide an example and/or clearer description.
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!