フィルターのクリア

Truncating a 3-d matrix into 2-d

1 回表示 (過去 30 日間)
Kash022
Kash022 2017 年 2 月 17 日
編集済み: the cyclist 2017 年 2 月 17 日
Hi All,
I have a matrix
X=16x16x4000
I want to truncate it (and delete the 4000 entirely) and make it to just 16x16. How should I do this? I have tried everything from permute to using [ ] but it just doesn't work. Thanks!
  1 件のコメント
Easwar Kumar Yarrabikki
Easwar Kumar Yarrabikki 2017 年 2 月 17 日
Have you tried to reshape it to 16x16...?

サインインしてコメントする。

採用された回答

the cyclist
the cyclist 2017 年 2 月 17 日
編集済み: the cyclist 2017 年 2 月 17 日
You are not being specific enough to determine a unique solution. If you are happy with just the first "slice" in the 3rd dimension, then
X(:,:,1)
is a 16x16 array.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by