0
我定義在Matlab以下功能:無法在MATLAB定義功能示值誤差
function draw_snake(snake,food)
但MATLAB顯示我一個錯誤消息說:
Error: Function definitions are not permitted in this context.
我是新來的MATLAB和公正安裝它。
我正在使用MATLAB版本8.1.0.604。
我定義在Matlab以下功能:無法在MATLAB定義功能示值誤差
function draw_snake(snake,food)
但MATLAB顯示我一個錯誤消息說:
Error: Function definitions are not permitted in this context.
我是新來的MATLAB和公正安裝它。
我正在使用MATLAB版本8.1.0.604。
什麼是上下文腳本的第一行? – doctorlove
可能重複[如何更正「在提示符或腳本中不允許使用函數定義」](http://stackoverflow.com/questions/5969547/how-to-correct-function-definitions-are-not-ermitted -at最提示或 - 在-憑證) – P0W