Matlab`localfunctions`函数未定义

时间:2015-10-22 14:37:32

标签: matlab

我尝试按照from the docs的建议使用localfunctions功能。当我在MATLAB命令窗口中执行脚本时,它会出现以下错误:

>> 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)。

1 个答案:

答案 0 :(得分:6)

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

Mathworks网站上所有功能参考文档的底部是一条注释,说明它的引入版本。

enter image description here

相关问题