www.gusucode.com > control 案例程序 matlab源码代码 > control/PIDControllerWithNamedInputAndOutputExample.m
%% PID Controller with Named Input and Output % When you create a PID controller, set the dynamic system properties % |InputName| and |OutputName|. This is useful, for example, when you % interconnect the PID controller with other dynamic system models using % the |connect| command. %% % Copyright 2015 The MathWorks, Inc. C = pid(1,2,3,'InputName','e','OutputName','u') %% % The display does not show the input and output names for the PID % controller, but you can examine the property values. For instance, % verify the input name of the controller. C.InputName