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

 Accepted Answer

If A is your image matrix, then try
B = A(:);
OR
B = reshape(A,1,[]);

More Answers (0)

Categories

Find more on Convert Image Type 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!