Error using reshape To RESHAPE the number of elements must not change.
Mostra commenti meno recenti
please help me. how to fix it ?


Risposte (2)
KSSV
il 27 Dic 2016
0 voti
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 Commenti
Andi Juwandi Karmita
il 29 Dic 2016
KSSV
il 29 Dic 2016
Find out what is numel(y), and numel(xb)...
numel(y) = numel(xb)*64 for reshape. If not in place of 64, you have to use numel(y)/numel(xb). Note that numel(y)/numel(xb) must be an integer.
Andi Juwandi Karmita
il 30 Dic 2016
Image Analyst
il 30 Dic 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/
alok dhaundiyal
il 17 Nov 2020
0 voti
Can we not use Identity matrix to rescale it?
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!