ml_ct_ss_lti2struct

Maps given input to a standard LTI system struct.

Contents

Syntax

[sys, opts, ioformat] = ml_ct_ss_lti2struct(A, B, C, D)
[sys, opts, ioformat] = ml_ct_ss_lti2struct(A, B, C, D, opts)
[sys, opts, ioformat] = ml_ct_ss_lti2struct(sys)
[sys, opts, ioformat] = ml_ct_ss_lti2struct(sys, opts)

Description

This function gets the possible inputs of the model order reduction
methods, checks the system matrices and returns structs for the system
and the options in the right format
    x'(t) = A*x(t) + B*u(t),                                        (1)
     y(t) = C*x(t) + D*u(t).                                        (2)
Also, the input format is returned as an integer.

Input

A    - matrix from (1) with dimensions n x n
B    - matrix from (1) with dimensions n x m
C    - matrix from (2) with dimensions p x n
D    - matrix from (2) with dimensions p x m
sys  - structure or state-space object, containing the standard
       system's matrices

Entry
Meaning
A
matrix from (1) with dimensions n x n
B
matrix from (1) with dimensions n x m
C
matrix from (2) with dimensions p x n
D
matrix from (2) with dimensions p x m

opts - structure, containing optional parameters

Output

sys      - structure, containing the standard system's matrices

Entry
Meaning
A
matrix from (1) with dimensions n x n
B
matrix from (1) with dimensions n x m
C
matrix from (2) with dimensions p x n
D
matrix from (2) with dimensions p x m

opts     - structure, containing optional parameters
ioformat - integer, describing the input format
             0 - for input type matrices
             1 - for input type struct
             2 - for input type state-space object

See Also

ml_ct_dss_lti2struct