【问题标题】:Matlab `localfunctions` function is undefinedMatlab `localfunctions` 函数未定义
【发布时间】:2015-10-22 22:41:04
【问题描述】:

我已尝试按照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)。

【问题讨论】:

    标签: matlab


    【解决方案1】:

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


    Mathworks 网站上所有函数参考文档的底部都有注释说明引入的版本。

                 

    【讨论】:

    • 太好了。非常感谢。
    猜你喜欢
    • 2017-01-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多