image processing
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
hi all
how can i convert 2-D matrix(image) into vector. please reply me.
many thanks
Réponses (3)
Sean de Wolski
le 4 Avr 2011
doc reshape
doc transpose
doc colon
Taleb Almajrbi
le 4 Avr 2011
0 votes
2 commentaires
Sean de Wolski
le 4 Avr 2011
Yes, this is correct. I would do it with numel since that's robust to higher dimensional matrices and faster:
Sv1=reshape(F1,numel(F1),1);
Sean de Wolski
le 4 Avr 2011
Also:
Sv1 = F1(:); %works also.
Taleb Almajrbi
le 4 Avr 2011
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!