how to convert a 2-dimensional image matrix to a one dimensional vector

 Réponse acceptée

Stephen23
Stephen23 le 16 Fév 2015
Modifié(e) : Stephen23 le 16 Fév 2015
If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

Plus de réponses (0)

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