Error using reshape To RESHAPE the number of elements must not change.
3 次查看(过去 30 天)
显示 更早的评论
please help me. how to fix it ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159279/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159280/image.png)
0 个评论
回答(2 个)
KSSV
2016-12-27
When you try to reshape a given matrix into another matrix, the total number of elements should not change, if not it will throw an error. In your case check numel(y) and xb*64 they must be equal for successful reshape.
4 个评论
Image Analyst
2016-12-30
Attach both your .mat file and your .m file with the paper clip icon so we can debug it for you. http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!