Creating and Manipulating Models    

Transfer Function Models

This section explains how to specify continuous-time SISO and MIMO transfer function models. The specification of discrete-time transfer function models is a simple extension of the continuous-time case (see Discrete-Time Models). In this section you can also read about how to specify transfer functions consisting of pure gains.

SISO Transfer Function Models

A continuous-time SISO transfer function

is characterized by its numerator and denominator , both polynomials of the Laplace variable s.

There are two ways to specify SISO transfer functions:

To specify a SISO transfer function model using the tf command, type

where num and den are row vectors listing the coefficients of the polynomials and , respectively, when these polynomials are ordered in descending powers of s. The resulting variable h is a TF object containing the numerator and denominator data.

For example, you can create the transfer function

by typing

MATLAB responds with

Note the customized display used for TF objects.

You can also specify transfer functions as rational expressions in the Laplace variable s by:

  1. Defining the variable s as a special TF model
  2. Entering your transfer function as a rational expression in s

For example, once s is defined with tf as in 1,

produces the same transfer function as

MIMO Transfer Function Models

MIMO transfer functions are two-dimensional arrays of elementary SISO transfer functions. There are several ways to specify MIMO transfer function models, including:

Consider the rational transfer matrix

You can specify by concatenation of its SISO entries. For instance,

or, equivalently,

can be concatenated to form .

This syntax mimics standard matrix concatenation and tends to be easier and more readable for MIMO systems with many inputs and/or outputs. See Model Interconnection Functions for more details on concatenation operations for LTI systems.

Alternatively, to define MIMO transfer functions using tf, you need two cell arrays (say, N and D) to represent the sets of numerator and denominator polynomials, respectively. See Structures and Cell Arrays in the MATLAB documentation for more details on cell arrays.

For example, for the rational transfer matrix , the two cell arrays N and D should contain the row-vector representations of the polynomial entries of

You can specify this MIMO transfer matrix by typing

MATLAB responds with

Notice that both N and D have the same dimensions as H. For a general MIMO transfer matrix , the cell array entries N{i,j} and D{i,j} should be row-vector representations of the numerator and denominator of , the entry of the transfer matrix .

Pure Gains

You can use tf with only one argument to specify simple gains or gain matrices as TF objects. For example,

produces the gain matrix

while

creates an empty transfer function.


  Creating LTI Models Zero-Pole-Gain Models