Extract Responses from Tuned MATLAB Model at the
Command Line
This example shows how to analyze responses of a tuned control system by using
getIOTransfer to compute responses between various inputs and outputs of a closed-
loop model of the system. You can obtain other responses using similar functions such as
getLoopTransfer and getSensitivity.Consider the following control system.rG 2 y+C 1+
C 2 G 1X 2X 1d 2d 1Suppose you have used systune to tune a genss model of this control system. The result
is a genss model, T, which contains tunable blocks representing the controller elements
C1 and C2. The tuned model also contains AnalysisPoint blocks that represent the
analysis-point locations, X1 and X2.Analyze the tuned system performance by examining various system responses extracted
from T. For example, examine the response at the output, y, to a disturbance injected at
the point d 1.H1 = getIOTransfer(T,'X1','y');H1 represents the closed-loop response of the control system to a disturbance injected at
the implicit input associated with the AnalysisPoint block X1, which is the location of
d 1 :10 Control System Tuning