Expression or statement is incomplete or incorrect

What does 'Expression or statement is incomplete or incorrect' mean? What I write on mfile this error is seen, even I write ' a=1 '. Can you halp me.

댓글 수: 1

Does this happen even right after you start MATLAB?
What happens if you put in a pure number?

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

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 12월 21일

0 개 추천

It means 'Expression or statement is incomplete or incorrect'. Did you write 'a=1' with or without the two single quote marks? Please post your complete code and use the {}Code format.

댓글 수: 8

Can
Can 2011년 12월 21일
>> a = 1
not only a=1 this error is seen what I write
Press Ctrl+C and then type in the following
clear all;
a=1
You might have some unfinished code already typed in the Command Window.
Can
Can 2011년 12월 21일
No. there aren't any code
Okay, can you copy what show up after you type in a=1 at the Command Window?
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Can
Can 2011년 12월 21일
Problem was my m.file's name. Thank you for your interest
I don't understand. Even if you have a function called a with a.m, the line a=1 still should not result in the error message.
Can
Can 2011년 12월 21일
mfile's name was untidled-------
I cahnged it to untidled so problem solved

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

카테고리

도움말 센터File Exchange에서 Adding custom doc에 대해 자세히 알아보기

질문:

Can
2011년 12월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by