image processing
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
hi all
how can i convert 2-D matrix(image) into vector. please reply me.
many thanks
Antworten (3)
Sean de Wolski
am 4 Apr. 2011
doc reshape
doc transpose
doc colon
Taleb Almajrbi
am 4 Apr. 2011
0 Stimmen
2 Kommentare
Sean de Wolski
am 4 Apr. 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
am 4 Apr. 2011
Also:
Sv1 = F1(:); %works also.
Taleb Almajrbi
am 4 Apr. 2011
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!