Stairs Command MATLAB Ends
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
T
el 18 de Oct. de 2013
Comentada: sixwwwwww
el 24 de Oct. de 2013
Is it possible to put a circle at the end of the stairs function? If the value is 0 and each end, one cannot see where it starts.
0 comentarios
Respuesta aceptada
sixwwwwww
el 18 de Oct. de 2013
Editada: sixwwwwww
el 18 de Oct. de 2013
Dear T,
I think you can do as follows (If i understood correctly)
figure
X = linspace(0,4*pi,40);
Y = sin(X);
stairs(X, Y), hold on
plot(X(end), Y(end), 'ro', 'linewidth', 2)
Or maybe you can use different color for next stairs to see difference between two series.
I hope it helps. Good luck!
16 comentarios
sixwwwwww
el 24 de Oct. de 2013
How you want to change the axis when you plot? Can you provide some screen shots what you need and what are you getting right now?
Más respuestas (1)
Azzi Abdelmalek
el 18 de Oct. de 2013
Editada: Azzi Abdelmalek
el 18 de Oct. de 2013
x=1:10
y=[0 1 0 1 0 1 0 1 0 1]
stairs(x,y,'k')
hold on
scatter(x,y,'or','linewidth',2)
%you can also change ylim
ylim([0 1.5])
0 comentarios
Ver también
Categorías
Más información sobre Annotations 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!