How do I show characteristics from my root locus figure?

35 ビュー (過去 30 日間)
Julie
Julie 2024 年 10 月 30 日 7:15
回答済み: Andrew Ouellette 2024 年 10 月 31 日 14:24
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 日 9:07
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 日 14:24
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 Center および File ExchangeClassical Control Design についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by