Model Predictive Control Toolbox    
tfd2step

Calculates the MIMO step response of a model in the MPC tf format. The resulting step response is in the MPC step format.

Syntax

Description
The input variables are as follows:

tfinal
Truncation time for step response.

delt2
Desired sampling period for step response.

nout
Output stability indicator. For stable systems, this argument is set equal to the number of outputs, ny. For systems with one or more integrating outputs, this argument is a column vector of length ny with nout(i)=0 indicating an integrating output and nout(i)=1 indicating a stable output.

g1, g2,...gN
A sequence of N transfer functions in the tf format (see tf format section), where N 1. These are assumed to be the individual elements of a transfer-function matrix:


Thus it should be clear that N must be an integer multiple (nu) of the number of outputs, ny.

tfd2step assumes that you are supplying the transfer functions in a column-wise order. In other words, you should first give the ny transfer functions for input 1 (g1,1 to gny, 1), then the ny transfer functions for input 2 (g1,2 to gny, 2), etc.

The output variable plant is the calculated step response of the ny outputs with respect to all inputs. The format is as described in the step section.

Example
Consider the linear system:


which is the same as that considered in the mpcsim example. We build the individual tf format models, then calculate and plot the MIMO step response.

The plots should match the example output in the plotstep description.

Restriction
The current limit on the number of input transfer functions is N = 25.

See Also
mod2step, plotstep, ss2step



tfd2mod, tf format th2mod, theta format