www.gusucode.com > ident 案例代码 matlab源码程序 > ident/ContinuousTimeTransferFunctionExample.m

    %% Create a Continuous-Time Transfer Function Model   
% Specify a continuous-time, single-input, single-output (SISO) transfer
% function with estimable parameters. The initial values of the transfer
% function are:  
% 
% $$G(s) = \frac{{s + 4}}{{{s^2} + 20s + 5}}$$
% 
%
%    

% Copyright 2015 The MathWorks, Inc.


%%  
num = [1 4];
den = [1 20 5];
G = idtf(num,den); 

%%
% |G| is an |idtf| model. |num| and |den| specify the initial values of
% the numerator and denominator polynomial coefficients in descending powers
% of $s$. The numerator coefficients having initial values 1 and 4 are estimable
% parameters. The denominator coefficient having initial values 20 and 5
% are also estimable parameters. The leading denominator coefficient is
% always fixed to 1. 

%%
% You can use |G| to specify an initial parametrization for estimation with
% |tfest|.