Showing information on a plot
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
the cyclist
2024년 2월 25일
0 개 추천
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
the cyclist
2024년 2월 25일
No, none of this is automatic. You will need to manually create all those additions to your plot.
Alexander
2024년 2월 25일
Not to forget:
text
.
the cyclist
2024년 2월 25일
Lewis
2024년 2월 25일
카테고리
도움말 센터 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
