How to add text in plot?

4 ビュー (過去 30 日間)
Lolipop
Lolipop 2015 年 4 月 3 日
編集済み: Lolipop 2015 年 4 月 3 日
Hi I am drawing TE and TM waveguides in matlab so I use this code:
for i=1:length(cc)
nameofmode=strcat(mat2str(cc(i)),mat2str(dd(i)));
if lamda0>lamda
line([lamda0 lamda0],[l(1) l(end)],'LineWidth',2)
legend(nameofmode)
hold on;
end
end
This works perfectly so I want to show names of modes in figure. I tried with legend but this add only last name of the mode. So is it possible to get plot with names something like this:
Please help me...

採用された回答

Mischa Kim
Mischa Kim 2015 年 4 月 3 日
delila, use the text command. See the documentation for reference.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by