error for equality of default
이전 댓글 표시
i have this error:
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.
line: 12946
but in that line, there is just code of matlab which i can not edit it :
% Component initialization
methods (Access = private)
how can i solve it?
댓글 수: 1
Ted Shultz
2019년 8월 26일
편집: Ted Shultz
2019년 8월 26일
That line looks fine. I suspect an error above that in your code? for this type of error, I find the "smart indent" feature useful. In particular look for a missing "end", ), ] , ect.
채택된 답변
추가 답변 (1개)
Steven Lord
2019년 8월 26일
0 개 추천
My guess is that you have too many end keywords in your code (or perhaps too few.) Smart indent your code (see the Code View Shortcuts section on that page) and check where the last few end keywords in your code block are aligned. If I'm right, MATLAB is confused about how to interpret the line where the automatically provided code is trying to start a methods block and that is its best guess about the cause of its confusion.
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!