www.gusucode.com > control 案例程序 matlab源码代码 > control/SampleRealParameterInTunableModelExample.m

    %% Sample Real Parameter in Tunable Model
% Create the first-order model $G\left( s \right) = {1 \mathord{\left/
% {\vphantom {1 {\left( {\tau s + 1} \right)}}} \right.
% \kern-\nulldelimiterspace} {\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)