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

 Risposta accettata

If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by