how to get probability data (y values) from probplot?
이전 댓글 표시
Hello dear.
I want to manage and work on probability data produced by a probplot function.
I have my dataset (data) which is a vector of something like thermal index.
I apply the probplot Matlab command with an exponentialpr distribution, and I would like to find the intercept points between the exponential function (black dashed line) and my data, in terms of y-values so the probability.
figure,probplot('exponential',data)

I know that the equation of the black dashed shold be
y=f(x|mu)=1/mu*exp^(-x/mu)
where mu (μ) is the mean of the function and could be calculted as
pd=fitdist(data,'exponential');
mu=pd.mu;
Now, I have to find a certain threshold for a probability value which corresponds to the first intercept of the black dashed line with my probability exponential distribution, but at the moment I don't know how to act on the Y_data from probplot function.
Any helps?
Thank you!
댓글 수: 3
Adam
2019년 6월 4일
h = probplot(...)
will return a vector of handles to the line objects plotted. You can get the YData from these. Ideally you would use whatever maths produced the plot to get your data rather than hack it out of a plot, but if the maths is not obvious then this method should at least give you the data.
fransec
2019년 6월 4일
fransec
2019년 6월 4일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Half-Normal Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!