Error using RESHAPE but I'm not using reshape
이전 댓글 표시
When executing one of my functions I'm getting:
Error using reshape To RESHAPE the number of elements must not change.
But my function doesn't even use reshape, any ideas of what is going on here? I mean, what other MATLAB function am I maybe using incorrectly that could be throwing this error?
댓글 수: 5
Rednar
2013년 7월 22일
Jan
2013년 7월 22일
Trust me Rednar, you did change not even not anything, but exactly the cause of the error. Matlab is 100% deterministic and you can be sure, that there was a reshape() in your code. The debugger Sean has suggested would have revealed where the problem occurs.
Rednar
2013년 7월 23일
Cedric
2013년 7월 23일
I don't think that Jan wanted to suggest that you were lying, but sometimes when we debug code, we check things out by e.g. commenting a few lines at different/random places, and we end up being unable of reproducing the bug when we want to ;-)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!