Why the underscore is red?
조회 수: 16 (최근 30일)
이전 댓글 표시
When typing, Why the underscore is in red and i always fail to call a variable due to this problem? How can i fix it?
댓글 수: 0
답변 (1개)
Star Strider
2019년 5월 27일
That usually means that the underscore you are using is not part of the ASCII character set MATLAB recognises.
The correct underscore is:
undscr = char(95);
and the minus sign or hyphen is:
hyphn = char(45);
댓글 수: 2
Star Strider
2019년 5월 27일
Without seeing your code, I don’t either.
However, it is likely that you either left off a closing parenthesis or square bracket or curly bracket, or some other error that caused the mlint or related functions to detect an error in the previous line. Be certain everything is correct iun the previous line, and the problem will likely not recur.
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!