how to start graph in matlab from the origin?
29 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Engineer Batoor khan mummand
le 26 Oct 2020
Commenté : Engineer Batoor khan mummand
le 27 Oct 2020
hi all:
i want to start my graph from origin not from other point if you see ploting graph is started from another point and at the end we can ntot see graph so i want to start graph from origin .
thanks
0 commentaires
Réponse acceptée
Image Analyst
le 26 Oct 2020
You're doing something like calling xticks() or xticklabels() with only two values. Please show us all the code involved in creating your graph. You need to be doing something like
xticks([0, max(x)]);
instead of whatever you're doing.
Plus de réponses (1)
drummer
le 26 Oct 2020
xlim[yourInitialRange, yourEndRange]
% Specifically
xlim[0, 100]; % check if it works.
% Cheers
1 commentaire
drummer
le 26 Oct 2020
Actually, I noticed the right side in your graph.
You want your graphic to start at 0 from the left, or in the middle and goes negative to the left and positive to the right?
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!