Is it possible to find the x value for a given y value of a fitdist() distribution?

조회 수: 3 (최근 30일)
Hi,
I'm using a probplot to display 500ish data points. I have this setup in a AppDesigner app. A distribution line can be added using the fitdist function as show below
DataType = app.DataTypeDropDown.Value;
dataFit = app.SelectFitDropDown.Value;
DistributionType = app.DistributionDropDown.Value;
device = app.DeviceDropDown.Value;
LegendName1 = ' Distribution Fit';
LegendName2 = ' ';
legendname = append(device,LegendName2,dataFit,LegendName1);
z = app.distData(:,device);
array = table2array(z);
array = str2double(array);
pd = fitdist(array(:,1),dataFit);
pp = probplot(app.UIAxes,pd);
set(pp,'color',app.colourMatrix(app.colourCounter,:),'DisplayName', legendname,'LineWidth', 1.5);
pp.ShowPoles = 'off';
When the fitted distribution is fitted, I would like to add a straight vertical line through the fitted distribution for a given Y value.
Is it possible to do this using the fitdist distribution or similar?
  댓글 수: 4
dpb
dpb 2022년 8월 15일
I presume that 5-9's is then a tail (upper) probability value?
In that case, then the icdf function for the named distribution is what you're looking for.

댓글을 달려면 로그인하십시오.

채택된 답변

Andrew Feenan
Andrew Feenan 2022년 8월 16일
@dpb provied the solution to my question in the comments above.
I presume that 5-9's is then a tail (upper) probability value?
In that case, then the icdf function for the named distribution is what you're looking for.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Exploration and Visualization에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by