%% Sample Real Parameter in Tunable Model
% Create the first-order model \[G\left( s \right) = 1/\left( {\tau s + 1} \right)\], where \tau is a tunable real parameter.

tau = realp('tau',5);
G = tf(1,[tau 1]);

%
% Evaluate this transfer function for \tau = 3,4,..,7. The result is a 5-by-1 array of first-order models.

Gs = sampleBlock(G,'tau',3:7);
size(Gs)

% Copyright 2012 The MathWorks, Inc.