Find the source of output in Command window
조회 수: 17 (최근 30일)
이전 댓글 표시
The code I wrote was quite lengthy. There is a number "2" that keep appearing during iterations. I think I forgot to type ";" somewhere. I am wondering if there is a command that can help me find the source of the problem.
댓글 수: 0
답변 (1개)
OCDER
2018년 7월 9일
편집: OCDER
2018년 7월 9일
You probably have to write a custom script to search all your code for the semicolon error. See this Q&A which provides a starting point for doing this.
The other way is the use the Matlab Editor, side bar on the right that shows a orange bar for warning/suggestions. An orange line will appear if you forgot to add semicolon. Maybe the line you need to fix is highlighted in orange. Hopefully there isn't too many orange lines...
댓글 수: 2
OCDER
2018년 7월 9일
The warnings are indeed orange. I had to create a lot of mistakes to see the orange hue.
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!