matlab syntax error "for" cannot run as it appears

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 10월 21일
편집: Cris LaPierre 2020년 10월 21일

0 개 추천

The issue here is you have named your script 'for.m' but for is a reserved word indicating the start of a for loop.
Give your script a different name, type 'clear for' in the Command Window, and then try again.
Typically, you would include the N=12; in your script, and just press the green Run button to run the whole script.

댓글 수: 1

It looks like you are new to MATLAB. Consider going through MATLAB Onramp, which provides a brief introduction to the MATLAB environment and fundamentals.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Software Development에 대해 자세히 알아보기

제품

질문:

2020년 10월 21일

댓글:

2020년 10월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by