How to reshape matrix
古いコメントを表示
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 件のコメント
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!