Add name above a horizontal (threshold) line on a graph plot matlab
8 次查看(过去 30 天)
显示 更早的评论
Hello everyone!
How can I add the name above a horizontal (threshold) line on a graph plot? (I don't want to put the name of the line in the legend, but above it).
I am using matlab 2014a version.
Thank you very much!
采纳的回答
Dyuman Joshi
2023-1-19
x=[0 10];
y=[2 2];
plot(x,y)
%adjust x, y coordinates and the text as you like
text(0.5, 2.05, 'Text')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!