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

6 次查看(过去 30 天)
pls give the process and the suitable function to implement the given task

采纳的回答

Stephen23
Stephen23 2015-2-16
编辑:Stephen23 2015-2-16
If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by