MATLAB Function Reference | Go to function: | Search Help Desk

add_dynamics | See Also

add the dynamical description of the model

Syntax

    m=add_dynamics(m,dyn)

    m=add_dynamics(m,ny,nu,nd)

Description

`m=add_dynamics(m,dyn)` attaches to the model `m` the dynamic description of the model present in the structure `dyn` which must include the fields 'nu', 'ny' and 'nd', defining the appropriate matrixes of the inputs, outputs and delays of the system.

`m=add_dynamics(m,ny,nu,nd)` attaches to the model `m` the dynamic description of the system as defined in the arrays `ny`, `nu`, and `nd`.

Remarks

This is done by inizializing the 'nu', 'ny' and 'nd' subfields of the 'dynamics' field of the model. These define the structure of the regressors and therefore the dynamical behaviour of the system. 'ny' is a `num_out * num_out` square matrix which contains the relationships of each output (each row) with all the other outputs. Each entry `ij` indicates the number of past values associated to the output `j` used in the regressor of the output `i`. 'nu' is a `num_out * num_in` matrix defining the relationships between the outputs and each input. Each entry `ij` indicates the number of past values associated to the input `j` used in the regressor of the output `i`. Finally 'nd' is a `num_out * num_in` matrix defining the delay of the inputs respect to the outputs. Each entry `ij` indicates the delay of the input `j` used in the regressor of the output `i`.

See Also

get

[ Help Desk ]