How to plot a graph like attached figure (in the form of steps).
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nisar Ahmed
le 29 Mai 2021
Réponse apportée : Star Strider
le 29 Mai 2021
How can I plot my curve in the form of steps as given in the attached figure?
0 commentaires
Réponse acceptée
Star Strider
le 29 Mai 2021
Example —
y = linspace(0,10*pi);
x = sin(y)+1000;
figure
stairs(x, y)
xline(1000, '--')
xlim([998 1002])
.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!