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

7 views (last 30 days)
pls give the process and the suitable function to implement the given task

Accepted Answer

Stephen23
Stephen23 on 16 Feb 2015
Edited: Stephen23 on 16 Feb 2015
If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!