How can I access the fitted distribution parameters from the HISTFIT function in Statistiics Toolbox ?

조회 수: 1 (최근 30일)
I am trying to access the fitted distribution parameters from HISTFIT. The distribution parameters that are used to fit the data in the HISTFIT function are not passed to the output.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
There is a workaround for this isssue by making a copy of the HISTFIT function and modifying the code to pass out the "pd" variable. One way to do this is to change the "h" output on the first line of the code to "varargout" and add the following to the end of the file:
h = [hh; hh1];
argout={h,pd};
if nargout > length(argout)
error('Too many output arguments.');
end
[varargout{1:nargout}]=argout{1:nargout};

추가 답변 (0개)

제품


릴리스

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by