why am I getting parse error as soon as I start loop ?
이전 댓글 표시
As soon as I type for, if etc. I get,
Parse error at <EOL>: usage might be invalid matlab syntax.
I get this error even if I do not write a single line of code.
댓글 수: 3
Dyuman Joshi
2022년 12월 12일
"I get this error even if I do not write a single line of code."
Did you try to run a script or function file?
Askic V
2022년 12월 12일
loops such as "for" of "if" statements should be ended with a keyword "end".
Ashish Phadke
2022년 12월 12일
답변 (1개)
Walter Roberson
2022년 12월 12일
1 개 추천
the expression for the condition of if or while must start on the same line, not the next line.
Comparisons are == not =
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!