Display transfer function on masked subsystem icon
droots(zero
,pole
,gain
) droots(zero
,pole
,gain
,'z') droots(zero
,pole
,gain
,'z-')
droots(
displays
the transfer function whose zero is zero
, pole
, gain
)zero
,
pole is pole
, and gain is gain
.
droots(
and zero
, pole
, gain
,'z') droots(
expresses
the transfer function in terms of z or 1/z.zero
, pole
, gain
,'z-')
When Simulink® draws the block icon, the initialization commands execute and the resulting equation appears on the block icon, as in the following examples:
To display a zero-pole gain transfer function, enter
droots(z, p, k)
For example, the preceding command creates this icon for these values:
z = []; p = [-1 -1]; k = 1;
If the parameters are not defined or have no values when you
create the icon, Simulink software displays three question marks
(? ? ?
) in the icon. When you define parameter
values in the Mask Settings dialog box, Simulink software evaluates
the transfer function and displays the resulting equation in the icon.
disp
| dpoly
| port_label
| text