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

    %% Specify Model Properties at Model Creation
% When you create a dynamic system model, the software sets all property
% values.  Properties that contain model dynamics are automatically
% set with the appropriate values. Other properties are set to default
% values.  (See model reference pages for information about default
% property values.)  
%
%% 
% You can specify other values for model properties at model creation using
% the |Name,Value| pair syntax of the model-creation command.  In this
% syntax, you specify the name of of the property you want to set, followed
% by the value.  You can set multiple property values in one command. For
% example, assign a transport delay and input and output names to a new transfer
% function model.
H = tf(1,[1 10],'IODelay',6.5,'InputName','torque','OutputName','velocity')
%% 
% 
% Some property values are reflected in the model display, such as the
% input and output names.  You can use |Name,Value| pair syntax when creating any type of model.