来自宋东辉的问题
Matlab中如何定义一个函数?我在命令窗口定义函数时出错Functiondefinitionsarenotpermittedatthepromptorinscripts.是什么意思?
Matlab中如何定义一个函数?我在命令窗口定义函数时出错Functiondefinitionsarenotpermittedatthepromptorinscripts.是什么意思?


Matlab中如何定义一个函数?我在命令窗口定义函数时出错Functiondefinitionsarenotpermittedatthepromptorinscripts.是什么意思?
Matlab中如何定义一个函数?我在命令窗口定义函数时出错Functiondefinitionsarenotpermittedatthepromptorinscripts.是什么意思?
只有在m文件中定义的第一个函数才可以在命令窗口直接调用,并且文件名字必须和函数名字相同。命令窗口是不能定义函数的