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

4 visualizzazioni (ultimi 30 giorni)
pls give the process and the suitable function to implement the given task

Risposta accettata

Stephen23
Stephen23 il 16 Feb 2015
Modificato: Stephen23 il 16 Feb 2015
If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by