Convert 3D matrix to 2D matrix.

1 回表示 (過去 30 日間)
Aniya
Aniya 2016 年 10 月 19 日
コメント済み: Aniya 2016 年 10 月 19 日
If i have value of x,y,z plane in 3D matrix and i want to change the 3D to 2D array( of each x plain).

採用された回答

Massimo Zanetti
Massimo Zanetti 2016 年 10 月 19 日
I try to guess from your question:
%random 3D array
A=rand(5,6,7);
%extract a 2D matrix from first dimension of A
x=1; % x can be from 1 to 5 in this example
B=A(x,:,:)
  1 件のコメント
Aniya
Aniya 2016 年 10 月 19 日
Thank you Massimo.

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

その他の回答 (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