Transpose on ND array is not defined. Use PERMUTE instead.
이전 댓글 표시
Hello All
I have an error in a line when I try to run my program. I want to write the following code:
ub=[maxc*ones(l,r,h3) c'];
So, I face this error:
Error using '
Transpose on ND array is not defined. Use PERMUTE instead.
Cheers
댓글 수: 3
Matt J
2016년 8월 17일
Since c is not a 2D matrix, what do you expect c' to do?
hamed
2016년 8월 17일
James Tursa
2016년 8월 17일
편집: James Tursa
2016년 8월 17일
If you just want to get rid of the error, then get rid of the transpose:
ub=[maxc*ones(l,r,h3) c];
However, I am rather unconvinced that this will get the result you really wanted. Can you tell us why you had that transpose in the first place? I.e., what would you expect the dimensions of c' to be after the transpose operation, and how was that supposed to be combined with the other stuff inside the [ ].
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!