Adding annotations to Bode plots.

Hello I would like to add annotations to my bode plot exactly like
Here is my code to the systems
TF1=tf(1,[1 1]);
TF2=tf(16,[1 4 16])
bode(TF2,'b--',TF1*TF2,'g')
grid on
legend('w/o actuator','w/ actuator')

3 Comments

Mehmed Saad
Mehmed Saad on 4 May 2020
Edited: Mehmed Saad on 4 May 2020
it is easy to add line and text in plots directly from figure. Go to insert tab in menubar of figure and select whatever you want to draw on figure
if you want to do it by coding, see here
textbox1 = uicontrol('Position',[0 0 0 0],'Style', 'text','Units','norm','fontweight','bold','fontsize',14);
set(textbox1, 'String', 'Your Text Goes Here');
By the vector shown in bold, you can play around with the position of the textboxs
The line would have to be -20dB. How would I do that?

Sign in to comment.

Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!