![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/478183/image.png)
Display "Minimum Stability Margins" and "Closed loop stable" status programmatically
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello there.
I'm using Live Script, and when I'm running my code:
W1 = tf(2, [0.001 0.111 1.11 1]);
bode1 = linearSystemAnalyzer('bode', W1)
I'm getting Linear System Analyzer window and a "screenshot" of it in my Live Script:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466960/image.png)
I want some additional information to be shown there, i.e. "Minimum Stability Margins". A pop-up window with a "Closed loop stable?" status would also be a good addition.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/466965/image.png)
I know that I can set these things manually with a mouse, but the figure in my Live Script wouldn't be affected by these changes.
So I would like to know whether there are any fields in the linearSystemAnalyzer handler that can be set to show the necessary information (because I have not succeeded in finding them on my own).
0 commentaires
Réponses (1)
Sarvani Panguluri
le 4 Jan 2021
Hi,
As a workaround you can use
margin(W1)
which displays minimum stability margins.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/478183/image.png)
0 commentaires
Voir également
Catégories
En savoir plus sur Get Started with Control System Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!