I have a variable named data which is 6-D double
Its size is 256 256 256 1 3 3.
I can easily extract 256*256*256 matrix but how do i extract last 3?

回答 (1 件)

Matt J
Matt J 2022 年 1 月 7 日

0 投票

yourMatrix(i,j,k,:,:,:)

1 件のコメント

Matt J
Matt J 2022 年 1 月 7 日
and possibly also,
shiftdim( yourMatrix(i,j,k,:,:,:) ,3)
depending on the shape you wanted.

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

カテゴリ

ヘルプ センター および File Exchange で MATLAB についてさらに検索

質問済み:

2022 年 1 月 7 日

コメント済み:

2022 年 1 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by