Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Discrete Zero-Pole - Model system defined by zeros and poles of discrete transfer function

Library

Discrete

Description

The Discrete Zero-Pole block models a discrete system defined by the zeros, poles, and gain of a z-domain transfer function. This block assumes that the transfer function has the following form

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.

Data Type Support

The Discrete Zero-Pole block accepts and outputs real signals of type double.

Parameters and Dialog Box

Zeros

The matrix of zeros. The default is [1].

Poles

The vector of poles. The default is [0 0.5].

Gain

The gain. The default is 1.

Sample time

The time interval between samples. See Specifying Sample Time.

The State Attributes pane of the Discrete Zero-Pole block dialog box appears as follows:

State name

Use this parameter to assign a unique name to each state. The default is ' '. If left blank, no name is assigned. Consider the following when using this parameter:

  • To assign a name to a single state, enter the name between quotes, for example, 'velocity' .

  • The state names apply only to the selected block.

  • To assign names to multiple states, enter a comma-delimited list surrounded by braces. For example, {'a', 'b', 'c'} . Each name must be unique.

  • The number of states must be evenly divided by the number of state names. There can be fewer names than states, but there cannot be more names than states.

  • For example, you can specify two names in a system with four states. Simulink software will assign the first name to the first two states and the second name to the last two.

  • To assign state names with a variable that has been defined in the MATLAB workspace, enter the variable without quotes. A variable can be a string, cell, or structure.

This parameter enables State name must resolve to Simulink signal object when you click the Apply button.

State name must resolve to Simulink signal object

Select this checkbox to require that state name resolve to Simulink signal object. This check box is cleared by default.

This parameter is enabled by State name.

Selecting this check box enables Real-Time Workshop storage class.

Real-Time Workshop storage class

From the list, select state storage class.

Auto

Auto is the appropriate storage class for states that you do not need to interface to external code.

ExportedGlobal

State is stored in a global variable

ImportedExtern

model_private.h declares the state as an extern variable.

ImportedExternPointer

model_private.h declares the state as an extern pointer.

This parameter is enabled by State name.

Setting this parameter to ExportedGlobal, ImportedExtern, or ImportedExternPointer enables Real-Time Workshop storage type qualifier.

During simulation, the block uses the following values:

See Block State Storage and Interfacing Considerations in the Real-Time Workshop User's Guide for more information.

Characteristics

Direct Feedthrough

Yes, if the number of zeros and poles are equal

Sample Time

Specified in the Sample time parameter

Scalar Expansion

No

States

Length of Poles vector

Dimensionalized

No

Zero Crossing

No

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS