How find the X- and Y- Intercepts of a plot?

Please tell me how to find the axis intercept of any plot. (X-intercept and Y-intercept).
for e.g.,this plot:
x=linspace(1,10,100);
y=randi([2 5],1,100);
y=fliplr(sort(y));
plot(x,y)
grid on

Antworten (2)

Walter Roberson
Walter Roberson am 18 Nov. 2013

0 Stimmen

That plot does not have a well defined axis intercept.
Are you asking what the intercept would be if your projected completely linearly with with the second-smallest y at x = 90 and the smallest y at x = 100 ?
Ved
Ved am 18 Nov. 2013
Bearbeitet: Ved am 18 Nov. 2013

0 Stimmen

Please consider the figure (plot of above code).

Kategorien

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

Produkte

Gefragt:

Ved
am 18 Nov. 2013

Bearbeitet:

Ved
am 18 Nov. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by