| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Control System Toolbox |
| Contents | Index |
| Learn more about Control System Toolbox |
You can apply operations to LTI models of different types. The resulting type is then determined by the rules discussed in Precedence Rules. For example, if sys1 is a transfer function and sys2 is a state-space model, then the result of their addition
sys = sys1 + sys2
is a state-space model, since state-space models have precedence over transfer function models.
To supersede the precedence rules and force the result of an operation to be a given type, for example, a transfer function (TF), you can either
Convert all operands to TF before performing the operation
Convert the result to TF after performing the operation
Suppose, in the above example, you want to compute the transfer function of sys. You can either use a priori conversion of the second operand
sys = sys1 + tf(sys2);
or a posteriori conversion of the result
sys = tf(sys1 + sys2)
Note These alternatives are not equivalent numerically; computations are carried out on transfer functions in the first case, and on state-space models in the second case. |
Another issue is property inheritance, that is, how the operand property values are passed on to the result of the operation. While inheritance is partly operation-dependent, some general rules are summarized below:
In operations combining discrete-time LTI models, all models must have identical or unspecified (sys.Ts = -1) sample times. Models resulting from such operations inherit the specified sample time, if there is one.
Most operations ignore the Notes and Userdata properties.
In general, when two LTI models sys1 and sys2 are combined using operations such as +, *, [,], [;], append, and feedback, the resulting model inherits its I/O names and I/O groups from sys1 and sys2. However, conflicting I/O names or I/O groups are not inherited. For example, the InputName property for sys1 + sys2 is left unspecified if sys1 and sys2 have different InputName property values.
A model resulting from operations on TF or ZPK models inherits its Variable property value from the operands. Conflicts are resolved according the following rules:
For continuous-time models, 'p' has precedence over 's'.
For discrete-time models, 'z^-1' has precedence over 'q' and 'z', while 'q' has precedence over 'z'.
![]() | Overview | Extracting and Modifying Subsystems | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |