可调低通滤波器
在此示例中,您将创建具有一个可调参数 a 的低通滤波器:
由于 tunableTF
模块的分子和分母系数是独立的,您无法用 tunableTF
来表示 F
。在这种情况下,您可以使用可调实数参数对象 realp
来构造 F
。
创建一个初始值为 10
的实数可调参数。
a = realp('a',10)
a = Name: 'a' Value: 10 Minimum: -Inf Maximum: Inf Free: 1 Real scalar parameter.
使用 tf
创建可调低通滤波器 F
。
numerator = a; denominator = [1,a]; F = tf(numerator,denominator)
Generalized continuous-time state-space model with 1 outputs, 1 inputs, 1 states, and the following blocks: a: Scalar parameter, 2 occurrences. Type "ss(F)" to see the current value and "F.Blocks" to interact with the blocks.
F
是一个 genss
对象,在其 Blocks
属性中具有可调参数 a
。您可以将 F
与其他可调模型或数值模型连接,以创建更复杂的控制系统模型。有关示例,请参阅Control System with Tunable Components。