フィルターのクリア

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

1 回表示 (過去 30 日間)
Ved
Ved 2013 年 11 月 19 日
回答済み: Walter Roberson 2013 年 11 月 19 日
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 Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by