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);

Respuestas (2)

Andy
Andy el 9 de Mzo. de 2020

1 voto

Use this immediately after the plot command to specify how you want the axis to plot.
ylim([-19 0])
Srivardhan Gadila
Srivardhan Gadila el 13 de Mzo. de 2020

0 votos

Refer to Specify Axis Limits and specify the limits for X and Y axis.

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Mzo. de 2020

Respondida:

el 13 de Mzo. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by