How do I show characteristics from my root locus figure?

조회 수: 12 (최근 30일)
Julie
Julie 2024년 10월 30일
답변: Andrew Ouellette 2024년 10월 31일
s = tf('s')
Gp = 10/(s^2 + (2*s) + 5);
figure(1)
rlocus(Gp)
% PD Controller %
zd = 4;
G_PD = Gp * (s+zd);
figure(2)
rlocus(G_PD)
% with PI Controller %
zi = 0.1;
G_PID = Gp * (s+zd) * (s+zi)/s;
figure (3)
rlocus(G_PID)
% Simulate Step Response %
K = 0.20;
Gopen = G_PID * K
Gclosed = feedback(Gopen, 1);
figure (4)
step(Gclosed)
This is what my figure looks like but i would like to show the characteristics like the graph from the video. Thank you. God bless.

답변 (2개)

Lokesh
Lokesh 2024년 10월 30일
Hello Julie,
You can follow these steps to display system characteristics (rise time, settling time, peak value, and overshoot) on your MATLAB step response plot:
  • Right-click anywhere on the step response plot to open the context menu.
  • Choose "Characteristics" option from the menu.
  • Choose the desired characteristics such as "Peak Response," "Settling Time," and "Rise Time," to display them on the plot.
  • Click on the markers to add detailed information to your plot.
You can refer to the attached figures for reference:

Andrew Ouellette
Andrew Ouellette 2024년 10월 31일
Hello,
There are two methods to enable characteristic visibility in Control System Toolbox charts.
1) After creating the chart, you can right click on a chart axes to open a context menu. In this menu, hover over the "Characteristics" option to open its submenu. You can then click on the desired characteristic option to make it visible.
2) Starting in R2024b, you can enable characteristic visibility via the chart API. The Characteristics property of the chart will list all of the available characteristics. Each characteristic has a Visible property which you can enable.
sys = tf(10,[1 2 5]);
sp = stepplot(sys);
sp.Characteristics.PeakResponse.Visible = true;
That being said, your question seems to ask about both the StepPlot chart and the RLocusPlot chart.
The StepPlot chart has PeakResponse, RiseTime, SettlingTime, TransientTime, SteadyState, and ConfidenceRegion (if you are using a System Identification Toolbox model) characteristics available.
The RLocusPlot chart has no characteristics available.

카테고리

Help CenterFile Exchange에서 Classical Control Design에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by