Is there a way to remove double from the variable?
6 views (last 30 days)
Show older comments
In the workspace, my variable is: lableimage < 359x476x3 double > Whenever I reshape it into a single column, the result is not 170884x1 but 512652x1. Also, because its double, the LDA is not working. Any suggestions?
8 Comments
Accepted Answer
Walter Roberson
on 24 Jan 2013
To convert an array such as labelImage from being double to being uint8, use
newArray = uint8(labelImage);
More Answers (0)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox 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!