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!