image processing
Info
This question is closed. Reopen it to edit or answer.
Show older comments
hi all
how can i convert 2-D matrix(image) into vector. please reply me.
many thanks
Answers (3)
Sean de Wolski
on 4 Apr 2011
doc reshape
doc transpose
doc colon
Taleb Almajrbi
on 4 Apr 2011
0 votes
2 Comments
Sean de Wolski
on 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
on 4 Apr 2011
Also:
Sv1 = F1(:); %works also.
Taleb Almajrbi
on 4 Apr 2011
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!