lixiang02 发表于 2006-5-24 20:18

Run的时候哪些原因会导致出现"Missing MATLAB operator."的错误啊?

请教各位高手!谢谢回答!

edwardflr 发表于 2006-5-24 20:42

我不是高手,不过我觉得掌握方法自己解决是重要的,而不是一有什么问题就问(当然这也比不问强)。<BR>我不知道答案,所以就用help,先输入了help missing matlab operator,没找到。再输入helpdesk,在search中选search type:full text,search for:missing matlab operator,然后查找,找到一点,有如下内容:<BR>MATLAB reserves certain keywords for its own use and does not allow you to override them. Attempts to use these words may result in any one of a number of error messages, some of which are shown here: Error: Expected a variable, function, or constant, found "=".<BR>Error: "End of Input" expected, "case" found.<BR>Error: Missing operator, comma, or semicolon.<BR>Error: "identifier" expected, "=" found.<BR>这个是说你用matlab的关键字当变量名,会报这个错。还有什么其他的不知道了。

cysunshine 发表于 2006-5-26 09:55

回复:(lixiang02)Run的时候哪些原因会导致出现"Mis...

文件名命名有问题

lixiang02 发表于 2006-5-26 10:17

谢谢答复

<P>谢谢答复:)<br><br>我写的脚本在m文件editor里面点击run,在command Window里面显示<br><br>??? 0522Result_1(1个)<br>      |<br>Error: Missing MATLAB operator.<br><br>直接把脚本帖导command window,可以正常运行<br><br>我是初学者,呵呵,刚才才发现:<br>原来m文件的名字如果是有汉字或者以数字开头,他都有这个问题<br>换成字母开头,无汉字,就好了<br><br></P>
[此贴子已经被作者于2006-5-26 10:20:51编辑过]

shellychard 发表于 2009-4-13 14:29

@原来m文件的名字如果是有汉字或者以数字开头,他都有这个问题
换成字母开头,无汉字,就好了@楼主这是什么意思啊?我的一个程序也是你遇到这样的问题,我的文件名都是字母的啊,字母还会出现这种情况呢?
页: [1]
查看完整版本: Run的时候哪些原因会导致出现"Missing MATLAB operator."的错误啊?