How to clear the error on the code?
显示 更早的评论
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 个评论
Adam
2018-2-8
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
2018-2-14
Pavithra A
2021-3-15
Beam width call function error
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!