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!