求助matlab

来源:百度知道 编辑:UC知道 时间:2024/05/12 11:57:32
求助:输入function xdot=c7fun1(t,x)
出现??? Strings passed to EVAL cannot contain function declarations.,为何?
不是运行程序,是设置函数。

是要运行程序么?
不要前面加function,直接xdot=c7fun1(t,x)就行了
-----------------
??
像function xdot=c7fun1(t,x)如果出现在一个.m文件的第一行应该是不会出错的,如果输在命令行里就会报 ??? Strings passed to EVAL cannot contain function declarations的错误,但在命令行下是不能设置函数的,不明白你想干什么……