Defining length of a x-axis

5 Ansichten (letzte 30 Tage)
Ljix
Ljix am 6 Feb. 2016
Kommentiert: Walter Roberson am 7 Feb. 2016
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.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 6 Feb. 2016
xlim([x1 x2])
ylim([y1 y2])
  2 Kommentare
Ljix
Ljix am 6 Feb. 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 am 7 Feb. 2016
You can do it any time after the first plot.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by