现在的位置: 首页 > 综合 > 正文

Matlab——如何判断某个函数为直通(Dirfeedthrough = 1)

2018年07月12日 ⁄ 综合 ⁄ 共 753字 ⁄ 字号 评论关闭

这几天在研究如何编写S函数,关于一个参数size.Dirfeedthrough何时为1一直搞不懂,在ilovematlab论坛里搜到这篇帖子

请问matlab
s函数中的Dirfeedthrough怎么设定? - Simulink 基础讨论 - MATLAB中文论坛 - Powered by Discuz!

看到回复,就去help找了一下,找到了help对典型的直通函数

Some examples of blocks with direct feedthrough inputs are:

Math Function block——简单的数学函数(加减乘除之类的)

Gain block——增益模块(虽然不知道跟乘法有何区别....)

Product block——暂时不知道

State-Space block,when the D matrix coefficient is nonzero——状态空间方程,但直通矩阵D不为0

Sum block——不懂.....

Transfer Fcn block,when the numerator and denominator are of the same order——传递函数,分子分母同阶

Zero-Pole block,when the block has as many zeros as poles——零极点模块,零极点个数相同


HELP里还给了个非常有用的小技巧,我们可以直接查看simulink中模块(系统自带的)中的直通属性,方法如下:

1.双击该模块,打开参数对话框,点击help,弹出该模块的详细说明(我会告诉你右击该模块就有help可选吗......)

2.找到Characteristics属性(ctrl+f 更快),然后查看Characteristics下的第一个参数就是Direct Feedthrough,后面有详细说明了不同情况此参数的值的变化。

抱歉!评论已关闭.