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!