Expression or statement is incomplete or incorrect
Ältere Kommentare anzeigen
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 Kommentar
Walter Roberson
am 21 Dez. 2011
Does this happen even right after you start MATLAB?
What happens if you put in a pure number?
Antworten (1)
Fangjun Jiang
am 21 Dez. 2011
0 Stimmen
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 Kommentare
Can
am 21 Dez. 2011
Fangjun Jiang
am 21 Dez. 2011
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
am 21 Dez. 2011
Fangjun Jiang
am 21 Dez. 2011
Okay, can you copy what show up after you type in a=1 at the Command Window?
Walter Roberson
am 21 Dez. 2011
http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Can
am 21 Dez. 2011
Fangjun Jiang
am 21 Dez. 2011
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
am 21 Dez. 2011
Kategorien
Mehr zu Adding custom doc finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!