无法使用某些 Matlab MPC Toolbox 函数



例如,我正在尝试使用MPC Toolbox中的setoutdist Matlab函数(我在Windows 8.1上使用Matlab R2013a(。作为我收到的回复:

    Undefined function 'setoutdist' for input arguments of type 'ss'.

我能够使用 help setoutdist 获得有关此功能的帮助。当我输入函数名称和左括号时,我收到带有参数列表的提示。当我使用which setoutdist -all时,我会收到正确的输出:

C:Program FilesMATLABR2013atoolboxmpcmpc@mpcsetoutdist.m  % mpc method code here

但是即使在默认的 Matlab 路径中,该函数也不起作用,所以我认为它没有阴影。其他函数也是如此,例如setindistsetestimmpc_struct等,但mpcmpcstatempcmove函数可以正常工作。

我正在尝试:clear allclear classessrehash toolboxrehash pathresetrehash toolboxreset,使用pathtool恢复默认路径。我已经阻止了防病毒软件并在其列表中添加了可执行文件。我什至重新安装了我的 Matlab,没有任何帮助。

也许这很重要:当我尝试编辑setoutdist.m时,我收到访问被拒绝的消息。

我将非常感谢任何帮助...

你怎么称呼setoutdist?正确的语法是三种语法之一(请参阅文档 - 适用于 R2014b(:

setoutdist(MPCobj,'integrators')
setoutdist(MPCobj,'remove',channels)
setoutdist(MPCobj,'model',model)

其中MPCobj是模型预测控制器对象,例如使用 mpc 函数创建的。从错误消息来看,您正在使用状态空间对象调用函数,这是不允许的(我猜(。

最新更新