How to scale a graph
Afficher commentaires plus anciens

My graph is the at the bottom one (second graph), but it supposed to look like the one above it (first graph). The values (x,y) are the same. Is there a way to scale it like the first graph?
My code
figure(1)
plot(Idx,Deflection,'-b','linewidth',1);
1 commentaire
Walter Roberson
le 6 Mar 2020
axis equal
Réponses (2)
Andy
le 9 Mar 2020
1 vote
Use this immediately after the plot command to specify how you want the axis to plot.
ylim([-19 0])
Srivardhan Gadila
le 13 Mar 2020
0 votes
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!