data labels in plot- in code
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Eleanna Kritikaki
el 2 de Nov. de 2019
Comentada: Eleanna Kritikaki
el 2 de Nov. de 2019
Hello,
So I am writing code that produces a plot with two different data vectors, and giving instructions about axes labels etc, like so
plot(times, Node1); %going to be a blue line
hold on;
plot(times, Node2); %going to be a red line
hold on;
plot(times,diff_N1_N2)
ylabel('phases')
xlabel('time')
title('Time evolution of oscillator phases and their phase difference');
hold off;
My question is, how do I add data labels to the different data types in the code? I can do that once the figure is produced, but the matlab documentation does not seem to have any relevant instructions for how to do that in the code.
Thank you!
2 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels 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!