Réponse acceptée

madhan ravi
madhan ravi le 17 Oct 2018
Modifié(e) : madhan ravi le 17 Oct 2018
An example:
A=rand(1,100,100)
reshape(A,100,100)

2 commentaires

Ivan Leonov
Ivan Leonov le 17 Oct 2018
Thanks!
madhan ravi
madhan ravi le 17 Oct 2018
you're welcome :)

Connectez-vous pour commenter.

Plus de réponses (2)

Luna
Luna le 17 Oct 2018

1 vote

Hi Ivan
Take a look at reshape function it may help you.

0 votes

color_img=cat(3,R,G,B);
I wont to covert this image matrix to 2D image matrix pleas

1 commentaire

Steven Lord
Steven Lord le 5 Oct 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by