Delete a dimension from a 3d array to convert into a 2d array (Matrix)

4 ビュー (過去 30 日間)
Akaash Dragon
Akaash Dragon 2019 年 12 月 5 日
回答済み: Guillaume 2019 年 12 月 5 日
I have an array of the following dimensions 1x3500x250. I want to delete this one extra dimension and convert it into 3500x250 2d array matrix in Matlab. How do I do it?

採用された回答

Guillaume
Guillaume 2019 年 12 月 5 日
squeeze(yourarray)
or
permute(yourarray, [2 3 1])
squeeze is simpler and will get rid of all singleton dimensions.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by