Is there some way to define the length of x-axis and y-axis on a graph? I'm ploting some complex data and I don't want to be shown the ones that are "far away" from zero.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 6 de Feb. de 2016

0 votos

xlim([x1 x2])
ylim([y1 y2])

2 comentarios

Ljix
Ljix el 6 de Feb. de 2016
Thank you for your answer. Can you be more specific, where to write this limitations, inside the plot()? This is my code
plot(fr_ori,'ro')
hold on
plot(fradi,'b+')
plot(frarno,'g*')
hold off
Walter Roberson
Walter Roberson el 7 de Feb. de 2016
You can do it any time after the first plot.

Iniciar sesión para comentar.

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 6 de Feb. de 2016

Comentada:

el 7 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by