How find the X- and Y- Intercepts of a plot?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(2 个)
Walter Roberson
2013-11-18
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 ?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!