image processing
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
hi all
how can i convert 2-D matrix(image) into vector. please reply me.
many thanks
0 个评论
回答(3 个)
Taleb Almajrbi
2011-4-4
0 个投票
2 个评论
Sean de Wolski
2011-4-4
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
2011-4-4
Also:
Sv1 = F1(:); %works also.
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!