2015-10-22 141 views
1

我试着按照使用localfunctions函数的建议from the docs。当我在MATLAB命令窗口中执行脚本它提供了以下错误:Matlab`localfunctions`函数未定义

>> athing() 
Undefined function or variable 'localfunctions'. 

Error in athing (line 2) 
    fs = localfunctions; 

在文件thing.m我已经写:

function fs = athing() 
    fs = localfunctions; 
end 

function babo() 
end 

function hidden() 
end 

我不知道还有什么我可以试着调试这个。我正在使用MATLAB:8.0.0.783(R2012b)。

回答

6

localfunctions仅在R2013b中引入。您需要将您的MATLAB版本升级到R2013b或更新版本才能使用它。


在Mathworks网站上的所有函数参考文档的底部是一个注释,指出它被引入的版本。

                            enter image description here

+0

这是伟大的。非常感谢。 – Quatermain