0

例如,我正在尝试使用setoutdistMPC 工具箱中的 Matlab 函数(我在 Windows 8.1 上使用 Matlab R2013a)。作为回应,我收到:

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

我可以使用help setoutdist. 当我输入函数名称和左括号时,我会收到带有参数列表的提示。当我使用时which setoutdist -all,我收到了正确的输出:

C:\Program Files\MATLAB\R2013a\toolbox\mpc\mpc\@mpc\setoutdist.m  % mpc method code here

但即使在默认的 Matlab 路径中,该功能也不起作用,所以我认为它不会被遮蔽。其他函数也是如此,例如setindist, setestim,mpc_struct等,但是mpc,mpcstatempcmove函数可以正常工作。

我正在尝试:clear all, clear classess, rehash toolbox, rehash pathreset, rehash toolboxreset, 使用pathtool. 我已经阻止了防病毒软件并将例外添加到它的列表中。我什至重新安装了我的 Matlab,没有任何帮助。

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

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

4

1 回答 1

0

你怎么叫setoutdist?正确的语法是以下三种之一(请参阅文档- 对于 R2014b):

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

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

于 2014-12-09T09:52:28.177 回答