Is there a way to remove double from the variable?
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2013 年 1 月 24 日
To convert an array such as labelImage from being double to being uint8, use
newArray = uint8(labelImage);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Statistics and Machine Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!