Is there a way to remove double from the variable?
6 次查看(过去 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!