Getting "Unrecognized function or variable 'reshape'" error!!
13 ビュー (過去 30 日間)
古いコメントを表示
I am running R2021b and using simple reshape function.
But Matlab is giving Unrecognized function or variable 'reshape'".
I checked for the path of this function and its present in the path values.
Any idea what could be wrong.
3 件のコメント
採用された回答
Walter Roberson
2022 年 5 月 27 日
reshape([1 2 3 4],:,1);
Notice the : . : by itself can only appear (a) in comments; (b) in character vectors; (c) in string() objects; or (d) as a subscript for a variable. So in context, that code would require that "reshape" is a variable. But reshape is not a variable in your code.
Perhaps you were looking for
reshape([1 2 3 4],[],1)
0 件のコメント
その他の回答 (1 件)
Chunru
2022 年 5 月 27 日
%reshape([1 2 3 4],:,1);
reshape([1 2 3 4], [], 1) % use [] for auto computed size
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!