How convert 3d matrix to 2d matrix?

11 ビュー (過去 30 日間)
Ivan Leonov
Ivan Leonov 2018 年 10 月 17 日
コメント済み: Steven Lord 2022 年 10 月 5 日
I wont to covert 1x100x100 matrix to 100x100.

採用された回答

madhan ravi
madhan ravi 2018 年 10 月 17 日
編集済み: madhan ravi 2018 年 10 月 17 日
An example:
A=rand(1,100,100)
reshape(A,100,100)
  2 件のコメント
Ivan Leonov
Ivan Leonov 2018 年 10 月 17 日
Thanks!
madhan ravi
madhan ravi 2018 年 10 月 17 日
you're welcome :)

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

その他の回答 (2 件)

Luna
Luna 2018 年 10 月 17 日
Hi Ivan
Take a look at reshape function it may help you.
  1 件のコメント
Ivan Leonov
Ivan Leonov 2018 年 10 月 17 日
Thanks!

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


Kawther Hassan Al-khafaji
Kawther Hassan Al-khafaji 2022 年 10 月 5 日
color_img=cat(3,R,G,B);
I wont to covert this image matrix to 2D image matrix pleas
  1 件のコメント
Steven Lord
Steven Lord 2022 年 10 月 5 日
If you want to convert that into an indexed image (with a separate colormap) see the rgb2ind function.
If that's not what you want, please describe in more detail exactly how you want this conversion to behave.

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by