How to find the X- and Y- axis interecpt of this plot in Matlab?

1 次查看(过去 30 天)
Please consider this sample code:
a=2.3;b=5.3; % constants
n=1000; % number of data blocks
data=a+(b-a)*rand(1,3500); % data points
count=0;
x=[1:.1:7]; % x-axis
bins=hist(data,x);
for i=length(x):-1:1
count=count+bins(i);
ccdf(i)=count/n;
end
semilogy(x,ccdf) % CCDF of data
My question is that if we could find and mark the Y-axis intercept.
I can use the * Data Marker * option in Matlab Figure to mark the X & Y axis values but is there any other way to do so?

回答(1 个)

Walter Roberson
Walter Roberson 2013-11-19
The Y axis intercept of a log plot... so in other words the place where the y data would equal 1 ?
If so then because y represents the cumulative distribution, y would be 1 at the right hand edge of the distribution, the end-point of where the distribution becomes defined. Which would be "b" in your code.

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by