Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Andi Juwandi Karmita
Andi Juwandi Karmita le 27 Déc 2016
please help me. how to fix it ?

Réponses (2)

KSSV
KSSV le 27 Déc 2016
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 commentaires
Andi Juwandi Karmita
Andi Juwandi Karmita le 30 Déc 2016
I can not seem to find it . Can you give the exact answer sir? thanks before
Image Analyst
Image Analyst le 30 Déc 2016
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/

Connectez-vous pour commenter.


alok dhaundiyal
alok dhaundiyal le 17 Nov 2020
Can we not use Identity matrix to rescale it?

Catégories

En savoir plus sur Image Segmentation and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by