Model Type Conversion

Change model representation, for example, from state-space model to transfer function

You can convert a model from one representation to another using the model-creation command for the target model type. For example, convert to state-space representation using ss, and convert to parallel-form PID using pid. For information about converting to a particular model type, see the reference page for that model type.

Functions

tfTransfer function model
zpkCreate zero-pole-gain model; convert to zero-pole-gain model
ssCreate state-space model, convert to state-space model
frdCreate frequency-response data model, convert to frequency-response data model
pidCreate PID controller in parallel form, convert to parallel-form PID controller
pidstd Create a PID controller in standard form, convert to standard-form PID controller
pid2Create 2-DOF PID controller in parallel form, convert to parallel-form 2-DOF PID controller
pidstd2 Create 2-DOF PID controller in standard form, convert to standard-form 2-DOF PID controller
make1DOFConvert 2-DOF PID controller to 1-DOF controller
make2DOFConvert 1-DOF PID controller to 2-DOF controller
getComponentsExtract SISO control components from a 2-DOF PID controller

Topics

Conversion Between Model Types

You can explicitly convert a model from one representation to another using the model-creation command for the target model type.

Switching Model Representation

This example shows how to switch between the transfer function (TF), zero-pole-gain (ZPK), state-space (SS), and frequency response data (FRD) representations of LTI systems.

Convert From One Model Type to Another

This example shows how to convert a numeric LTI model from one type (pid) to another type (tf).

Get Current Value of Generalized Model by Model Conversion

This example shows how to get the current value of a generalized model by converting it to a numeric model.

Decompose a 2-DOF PID Controller into SISO Components

This example shows how to extract SISO control components from a 2-DOF PID controller in each of the feedforward, feedback, and filter configurations.

Sensitivity of Multiple Roots

This example shows that high-multiplicity poles have high numerical sensitivity and can shift by significant amounts when switching model representation.