Control System Toolbox
  Go to function:
    Search    Help Desk 
get    Examples   See Also

Access/query LTI property values

Syntax

Description

Value = get(sys,'PropertyName') returns the current value of the property PropertyName of the LTI model sys. The string 'PropertyName' can be the full property name (for example, 'UserData') or any unambiguous case-insensitive abbreviation (for example, 'user'). You can specify any generic LTI property, or any property specific to the model sys (see "LTI Properties" in the manual for details on generic and model-specific LTI properties).

Struct = get(sys) converts the TF, SS, or ZPK object sys into a standard MATLAB structure with the property names as field names and the property values as field values.

Without left-hand argument,

displays all properties of sys and their values.

Example

Consider the discrete-time SISO transfer function defined by

You can display all LTI properties of h with

or query only about the numerator and sample time values by

and

Because the numerator data (num property) is always stored as a cell array, the first command evaluates to a cell array containing the row vector [0 1].

Remark

An alternative to the syntax

is the structure-like referencing

For example,

return the values of the sample time, matrix, and UserData property of the (state-space) model sys.

See Also

frdata      Quick access to frequency response data

set         Set/modify LTI properties

ssdata      Quick access to state-space data

tfdata      Quick access to transfer function data

zpkdata     Quick access to zero-pole-gain data



[ Previous | Help Desk | Next ]