Signal Processing Toolbox Help Desk

tf2ss

Purpose

Transfer function to state-space conversion.

Syntax

Description

tf2ss converts a transfer function representation of a given system to an equivalent state-space representation.

[A,B,C,D] = tf2ss(num,den) finds a state-space representation:

given a system in transfer function form:

from a single input. Input vector den contains the denominator coefficients in descending powers of s. Array num contains the numerator coefficients with as many rows as there are outputs y. tf2ss returns the A, B, C, and D matrices in controller canonical form.

tf2ss also works for discrete systems, but you must pad the numerator with trailing zeros to make it the same length as the denominator.

The function ss2tf is the inverse of tf2ss.

Example

Consider the system

To convert this system to state-space:

There is disagreement in the literature on naming conventions for the canonical forms. It is easy, however, to generate similarity transformations that convert to other forms. For example:

Algorithm

tf2ss writes the output in controller canonical form by inspection.

See Also

ss2tf

State-space to transfer function conversion.

ss2zp

State-space to zero-pole-gain conversion.

tf2zp

Transfer function to zero-pole-gain conversion.

zp2ss

Zero-pole-gain to state-space conversion.

zp2tf

Zero-pole-gain to transfer function conversion.



[ Previous | Help Desk | Next ]