How convert 3d matrix to 2d matrix?

15 Ansichten (letzte 30 Tage)
Ivan Leonov
Ivan Leonov am 17 Okt. 2018
Kommentiert: Steven Lord am 5 Okt. 2022
I wont to covert 1x100x100 matrix to 100x100.

Akzeptierte Antwort

madhan ravi
madhan ravi am 17 Okt. 2018
Bearbeitet: madhan ravi am 17 Okt. 2018
An example:
A=rand(1,100,100)
reshape(A,100,100)
  2 Kommentare
Ivan Leonov
Ivan Leonov am 17 Okt. 2018
Thanks!
madhan ravi
madhan ravi am 17 Okt. 2018
you're welcome :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Luna
Luna am 17 Okt. 2018
Hi Ivan
Take a look at reshape function it may help you.

Kawther Hassan Al-khafaji
Kawther Hassan Al-khafaji am 5 Okt. 2022
color_img=cat(3,R,G,B);
I wont to covert this image matrix to 2D image matrix pleas
  1 Kommentar
Steven Lord
Steven Lord am 5 Okt. 2022
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by