How do I show characteristics from my root locus figure?

35 visualizzazioni (ultimi 30 giorni)
Julie
Julie il 30 Ott 2024 alle 7:15
Risposto: Andrew Ouellette il 31 Ott 2024 alle 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.

Risposte (2)

Lokesh
Lokesh il 30 Ott 2024 alle 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 il 31 Ott 2024 alle 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.

Community Treasure Hunt

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

Start Hunting!

Translated by