Add text description to point of a selected subplot

7 ビュー (過去 30 日間)
Resul AZIZI
Resul AZIZI 2021 年 2 月 11 日
編集済み: Alberto Mora 2021 年 2 月 11 日
Hi
I plot bode diagram of a transfer function in matlab by bode(F) function in matlab livescript. As it is known this plot consist of two subplot: upper is amplitude and lower plot is phase. I am trying to add a text description to a point in upper plot but when I use the text command it draws in the lower phase plot. Can you guide me how to add text to upper plot?

採用された回答

Alberto Mora
Alberto Mora 2021 年 2 月 11 日
編集済み: Alberto Mora 2021 年 2 月 11 日
Just point to the first subplot using simply:
subplot(2,1,1);
text(x,y,'my text here') % EDIT: This method does not work, see below
EDIT: plot manually the bode, as described below!
  4 件のコメント
Resul AZIZI
Resul AZIZI 2021 年 2 月 11 日
That solved my problem. Thanks for your time.
Alberto Mora
Alberto Mora 2021 年 2 月 11 日
編集済み: Alberto Mora 2021 年 2 月 11 日
If that solved the problem, please, accept the answer as sign of gratitude. That can help other user to see that your problem was fixed.
Thaks you and best regards. A-

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by