Display values on plot
55 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Chunru
2021 年 12 月 10 日
編集済み: Chunru
2021 年 12 月 10 日
You can use text. For example
t = 0:.01:2*pi;
x = cos(t);
plot(t, x);
text(0.2, 0.4, {'This', 'is', 'a', 'test'}, 'EdgeColor', 'r')
2 件のコメント
Chunru
2021 年 12 月 10 日
if you have a string array
r = ["r=0.1"; "r=0.2"];
Then you can do the following:
t = 0:.01:2*pi;
x = cos(t);
plot(t, x);
text(0.2, 0.4, r, 'EdgeColor', 'r')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


