how to rectify the error
1 次查看(过去 30 天)
显示 更早的评论
i want to obtain the original image which is stored in Makeup_YMU.mat.The YMU images are stored in a matrix YMU_matrix 58500x604 uint8.when i execute the command img=reshape(YMU_matrix(i),[150 130 3]), i get the error,Subscript indices must either be real positive integers or logicals..
0 个评论
回答(1 个)
Walter Roberson
2017-10-4
for ImageNumber = 1 : size(YMU_matrix, 2)
img=reshape(YMU_matrix(:, ImageNumber),[150 130 3]);
...
end
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!