Is there a way to remove double from the variable?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 24 Jan 2013
To convert an array such as labelImage from being double to being uint8, use
newArray = uint8(labelImage);
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!