Showing information on a plot
Mostra commenti meno recenti
Hello,
I am analysing a control system, that has a step input and the given transfer function. I have been able to produce a graph, and obtain the information of the system (Peak, SettlingMax etc.), but I am trying to display this information as shown below on the MATLAB help centre. Unfortunately, I am unable to locate any guidance on displaying the information in this way (see below for my current graph/desired output)
For reference, my transfer function is g = tf(1,[1,8.52,5.3,26]), and as stated prior a step input is used.
This is my blank graph

An example I found in a textbook

And I am looking to display it in this way.
I

Note - I am able to find the values for each of these via the command stepinfo(g), however would like to show them as the nodes on the image above.
Any help to display my results in a similar way would be greatly appreciated!
Thank you,
Lewis
Risposta accettata
Più risposte (1)
the cyclist
il 25 Feb 2024
0 voti
You should be able to get everything you want, using the following commands:
line to create the line segments.
annotation to add the text and arrows.
5 Commenti
the cyclist
il 25 Feb 2024
No, none of this is automatic. You will need to manually create all those additions to your plot.
Alexander
il 25 Feb 2024
Not to forget:
text
.
the cyclist
il 25 Feb 2024
Lewis
il 25 Feb 2024
Categorie
Scopri di più su Graphics Object Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
