Model system defined by zeros and poles of discrete transfer function
where Z represents the zeros vector, P the poles vector, and K the gain. The number of poles must be greater than or equal to the number of zeros (n ≥ m). If the poles and zeros are complex, they must be complex conjugate pairs.
The block displays the transfer function depending on how the parameters are specified. See Zero-Pole for more information.
The Discrete Zero-Pole block accepts and outputs real signals
more information, see
Data Types Supported by Simulink in
the Simulink® documentation.
Specify the matrix of zeros. The default is
Specify the vector of poles. The default is
Specify the gain. The default is
Specify the time interval between samples. See Specifying Sample Time.
The State Attributes pane of the Discrete Zero-Pole block dialog box appears as follows:
Use this parameter to assign a unique name to the block state.
The default is
' '. When this field is blank, no
name is assigned. When using this parameter, remember these considerations:
A valid identifier starts with an alphabetic or underscore character, followed by alphanumeric or underscore characters.
The state name applies only to the selected block.
This parameter enables State name must resolve to Simulink signal object when you click Apply.
For more information, see Discrete Block State Naming in Generated Code in the Simulink Coder™ documentation.
Select this check box to require that the state name resolve to a Simulink signal object. This check box is cleared by default.
State name enables this parameter.
Selecting this check box disables Code generation storage class.
Select a package that defines the custom storage class you want to apply. If you have defined any packages of your own, click Refresh. This action adds all user-defined packages on your search path to the package list.
Select custom storage class for state.
Auto is the appropriate storage class for states that you do not need to interface to external code.
model_P initializes the state to
its corresponding value in the workspace.
State is stored in a global variable
the state as an extern variable.
the state as an extern pointer.
A non-editable placeholder storage class is created.
struct declaration is created that embeds
Volatile type qualifier is used in state declaration.
(.h) file containing global variable
declarations is generated with user-specified name.
(.h) files containing
global variable declarations are included.
A static qualifier is generated in front of the state declaration to make the state visible only to the current file.
struct declaration is created to encapsulate
parameter or signal object data.
Volatile type qualifier is used in
Supports specialized function calls to read and write memory.
State name enables this parameter.
The list of valid storage classes differs based on the Package selection.
Setting this parameter to
ImportedExternPointer enables Code
generation storage type qualifier.
Specify a Simulink Coder storage type qualifier. The
' '. When this field is blank, no qualifier
The Simulink Coder product does not check this string for errors. Thus, whatever value you enter appears automatically in the variable declaration.
Setting Code generation storage class to
ImportedExternPointer enables this parameter.
During simulation, the block uses the following values:
The initial value of the signal object to which the state name is resolved
Min and Max values of the signal object
For more information, see Discrete Block State Naming in Generated Code in the Simulink Coder documentation.
Yes, if the number of zeros and poles are equal
Specified in the Sample time parameter
Length of Poles vector