Is there any way to display a value instead of circles for points on a plot?
1 回表示 (過去 30 日間)
古いコメントを表示
Is there any way to display a value instead of circles for points on a plot?
0 件のコメント
採用された回答
Walter Roberson
2016 年 11 月 18 日
a=1:10:100;
b=sin(a);
plot(a,b);
labels = arrayfun(@(A,B) sprintf('%g:%g', A, B), a, b, 'Uniform', 0);
text(a, b, labels)
0 件のコメント
その他の回答 (1 件)
Brendan Hamm
2016 年 11 月 17 日
You can use the text function.
x = rand(5,1);
y = rand(5,1);
txt = num2str((1:5)');
text(x,y,txt)
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!