Error using reshape To RESHAPE the number of elements must not change.

4 ビュー (過去 30 日間)
Andi Juwandi Karmita
Andi Juwandi Karmita 2016 年 12 月 27 日
回答済み: alok dhaundiyal 2020 年 11 月 17 日
please help me. how to fix it ?

回答 (2 件)

KSSV
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 件のコメント
Andi Juwandi Karmita
Andi Juwandi Karmita 2016 年 12 月 30 日
I can not seem to find it . Can you give the exact answer sir? thanks before
Image Analyst
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/

サインインしてコメントする。


alok dhaundiyal
alok dhaundiyal 2020 年 11 月 17 日
Can we not use Identity matrix to rescale it?

カテゴリ

Help Center および File ExchangeEmbedded Coder についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by