Extracting a 2 dimensional array from a 3 dimensional matrix.
古いコメントを表示
I have a 3D matrix named SM of order 17x10x181. I need to extract a 2D matrix from SM of order 10x181. What should be the command?
採用された回答
その他の回答 (1 件)
use squeeze,
a = squeeze(yourmatrix(1,:,:))
first row from all pages. I suggest reading the doc page of squeeze.
1 件のコメント
Werner Barros
2020 年 7 月 29 日
Thank you so much
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!