How to plot a graph like attached figure (in the form of steps).
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nisar Ahmed
el 29 de Mayo de 2021
Respondida: Star Strider
el 29 de Mayo de 2021
How can I plot my curve in the form of steps as given in the attached figure?
0 comentarios
Respuesta aceptada
Star Strider
el 29 de Mayo de 2021
Example —
y = linspace(0,10*pi);
x = sin(y)+1000;
figure
stairs(x, y)
xline(1000, '--')
xlim([998 1002])
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D 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!
