필터 지우기
필터 지우기

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 CenterFile Exchange에서 2-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