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

7 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。


alok dhaundiyal
alok dhaundiyal 2020-11-17
Can we not use Identity matrix to rescale it?

类别

Help CenterFile Exchange 中查找有关 Embedded Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by