How to clear the error on the code?
Mostrar comentarios más antiguos
if true
x_of_size_of_U=W;
y_of_size_of_U=L;
U=[ho,E2];
for i=1:n
reshaped_U=reshape(U,x_of_size_of_U,y_of_size_of_U);
end
end
the error is given below
Error using reshape To RESHAPE the number of elements must not change.
Error in fincode (line 227) reshaped_U=reshape(U,x_of_size_of_U,y_of_size_of_U);
3 comentarios
Adam
el 8 de Feb. de 2018
Make sure you give correct sizes. Given that you arbitrarily assign W and L to your size elements, which we have no clue what they are, we can't really say anything more than that.
x_of_size_of_U * y_of_size_of_U
should be equal to
numel( U )
PLACEIUS NISHIGA G
el 14 de Feb. de 2018
Pavithra A
el 15 de Mzo. de 2021
Beam width call function error
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!