Add name above a horizontal (threshold) line on a graph plot matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ANDREA
el 19 de En. de 2023
Comentada: ANDREA
el 19 de En. de 2023
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!
Respuesta aceptada
Dyuman Joshi
el 19 de En. de 2023
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')
Más respuestas (0)
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!