matlab的guidefunc.m文件里的 feval(fcn) 怎么错了,怎么办!谢谢!

发布网友

我来回答

1个回答

热心网友

其实楼主的问题涉及到的是Simulink模型的未公开API。这方面的有用信息很少,在网上我唯一找到的是MathWorks公司的一位员工Rick Spada在其官方的Newsreader上回复一个提问时说到这个话题。那是2000年11月的事,距今已经14年。

当时有人问一个关于“Finding simulink vector widths”的问题,Rick在答复时说到了显式编译(explicit compilation)这个术语,提到类似下面的用法:

1
2

modelName([],[],[],'compile') % compile a model
modelName([],[],[],'term') % terminate compilation

称之为mdl-api,也就是模型的API。

然后有人问哪里有关于explicit compilation的文档,或者这些属于undocumented feature?Rick回答说没有相关的文档,而且他们一般不公开谈论这些问题。但这位老兄真是很厚道,针对有人问起除compile、term之外还有没有其它参数,他还提供了下列信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

'sizes' % return the sizes vector
'compile' % compile the model
'lincompile' % compile the model for linearization (used by linmod)
'outputs' % return the model outputs
'update' % compute the model update (e.g., discrete states)
'derivs' % return the derivatives
'term' % uncompile
'load' % load the model (doesn't make it visible, see load_system.m

For the 'outputs', 'update', and 'derivs' commands, you need to supply values for the first three inputs:

lhs = model(t, x, u, command)

will return the outputs at time t, with states x, and input u.

以上就是目前我能找到的关于此话题的有价值的全部信息。追问虽然没用但是谢谢!

热心网友

其实楼主的问题涉及到的是Simulink模型的未公开API。这方面的有用信息很少,在网上我唯一找到的是MathWorks公司的一位员工Rick Spada在其官方的Newsreader上回复一个提问时说到这个话题。那是2000年11月的事,距今已经14年。

当时有人问一个关于“Finding simulink vector widths”的问题,Rick在答复时说到了显式编译(explicit compilation)这个术语,提到类似下面的用法:

1
2

modelName([],[],[],'compile') % compile a model
modelName([],[],[],'term') % terminate compilation

称之为mdl-api,也就是模型的API。

然后有人问哪里有关于explicit compilation的文档,或者这些属于undocumented feature?Rick回答说没有相关的文档,而且他们一般不公开谈论这些问题。但这位老兄真是很厚道,针对有人问起除compile、term之外还有没有其它参数,他还提供了下列信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

'sizes' % return the sizes vector
'compile' % compile the model
'lincompile' % compile the model for linearization (used by linmod)
'outputs' % return the model outputs
'update' % compute the model update (e.g., discrete states)
'derivs' % return the derivatives
'term' % uncompile
'load' % load the model (doesn't make it visible, see load_system.m

For the 'outputs', 'update', and 'derivs' commands, you need to supply values for the first three inputs:

lhs = model(t, x, u, command)

will return the outputs at time t, with states x, and input u.

以上就是目前我能找到的关于此话题的有价值的全部信息。追问虽然没用但是谢谢!

热心网友

其实楼主的问题涉及到的是Simulink模型的未公开API。这方面的有用信息很少,在网上我唯一找到的是MathWorks公司的一位员工Rick Spada在其官方的Newsreader上回复一个提问时说到这个话题。那是2000年11月的事,距今已经14年。

当时有人问一个关于“Finding simulink vector widths”的问题,Rick在答复时说到了显式编译(explicit compilation)这个术语,提到类似下面的用法:

1
2

modelName([],[],[],'compile') % compile a model
modelName([],[],[],'term') % terminate compilation

称之为mdl-api,也就是模型的API。

然后有人问哪里有关于explicit compilation的文档,或者这些属于undocumented feature?Rick回答说没有相关的文档,而且他们一般不公开谈论这些问题。但这位老兄真是很厚道,针对有人问起除compile、term之外还有没有其它参数,他还提供了下列信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

'sizes' % return the sizes vector
'compile' % compile the model
'lincompile' % compile the model for linearization (used by linmod)
'outputs' % return the model outputs
'update' % compute the model update (e.g., discrete states)
'derivs' % return the derivatives
'term' % uncompile
'load' % load the model (doesn't make it visible, see load_system.m

For the 'outputs', 'update', and 'derivs' commands, you need to supply values for the first three inputs:

lhs = model(t, x, u, command)

will return the outputs at time t, with states x, and input u.

以上就是目前我能找到的关于此话题的有价值的全部信息。追问虽然没用但是谢谢!

热心网友

其实楼主的问题涉及到的是Simulink模型的未公开API。这方面的有用信息很少,在网上我唯一找到的是MathWorks公司的一位员工Rick Spada在其官方的Newsreader上回复一个提问时说到这个话题。那是2000年11月的事,距今已经14年。

当时有人问一个关于“Finding simulink vector widths”的问题,Rick在答复时说到了显式编译(explicit compilation)这个术语,提到类似下面的用法:

1
2

modelName([],[],[],'compile') % compile a model
modelName([],[],[],'term') % terminate compilation

称之为mdl-api,也就是模型的API。

然后有人问哪里有关于explicit compilation的文档,或者这些属于undocumented feature?Rick回答说没有相关的文档,而且他们一般不公开谈论这些问题。但这位老兄真是很厚道,针对有人问起除compile、term之外还有没有其它参数,他还提供了下列信息:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

'sizes' % return the sizes vector
'compile' % compile the model
'lincompile' % compile the model for linearization (used by linmod)
'outputs' % return the model outputs
'update' % compute the model update (e.g., discrete states)
'derivs' % return the derivatives
'term' % uncompile
'load' % load the model (doesn't make it visible, see load_system.m

For the 'outputs', 'update', and 'derivs' commands, you need to supply values for the first three inputs:

lhs = model(t, x, u, command)

will return the outputs at time t, with states x, and input u.

以上就是目前我能找到的关于此话题的有价值的全部信息。追问虽然没用但是谢谢!

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com