Is there a way to remove double from the variable?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 24 Jan. 2013
To convert an array such as labelImage from being double to being uint8, use
newArray = uint8(labelImage);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!