Convert matrix 3d into 2d

3 ビュー (過去 30 日間)
Jonathan Demmer
Jonathan Demmer 2019 年 12 月 9 日
コメント済み: Matt J 2019 年 12 月 9 日
Hello all,
I have matrix (a*b*n) (3d matrix), I would like to convert it into n 2D matrix (a*b). Can someone help me, please?
Jonathan
  2 件のコメント
Rik
Rik 2019 年 12 月 9 日
Do you want to just select 1 slice, sum the slices, take the mean of the slices, do something else?
Jonathan Demmer
Jonathan Demmer 2019 年 12 月 9 日
Thank you for your answer.
I would like to create n matrix with dimension(a*b) from a 3D matrix (a*b*n). n is the temporal parameters of the 3 d matrix, I would like that each time step is in a new 2D matrix. Is that clearer?

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

回答 (1 件)

Matt J
Matt J 2019 年 12 月 9 日
Calling your matrix A,
Acell=num2cell(A,[1,2]);
  6 件のコメント
Matt J
Matt J 2019 年 12 月 9 日
編集済み: Matt J 2019 年 12 月 9 日
Jonathan Demmer's answer converted to a comment:
Thank you everybody, it work s well indeed...
Regards
Jonathan
Matt J
Matt J 2019 年 12 月 9 日
You are welcome, but since it did work, please Accept-click the answer.

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by