Documentation Center    • Trial Software   • Product Updates
Model Array with Single Parameter Variation  This example shows
how to create a one-dimensional array of transfer functions
using the stack command. One parameter of the transfer function
varies from model to model in the array. You can use such an
array to investigate the effect of parameter variation on your
model, such as for sensitivity analysis.  Create an array of
transfer functions representing the following low-pass filter at
three values of the roll-off frequency, a.  $$F\left( s \right)
= \frac{a}{{s + a}}.$$  Create transfer function models
representing the filter with roll-off frequency at a = 3, 5, and
7.  F1 = tf(3,[1 3]); F2 = tf(5,[1 5]); F3 = tf(7,[1 7]);  Use
the stack command to build an array.  Farray =
stack(1,F1,F2,F3);  The first argument to stack specifies the
array dimension along which stack builds an array. The remaining
arguments specify the models to arrange along that dimension.
Thus, Farray is a 3-by-1 array of transf