Hi. I meet difficulties in generating a histfit figure in uiaxes created in the Appdesigner, since the histfit function doesn't have the 'handle' input argument.
I tried the 'copyobj' function to copy the histfit figure to the uiaxes, as below. But the original figure is not easy to be deleted. And the method seems to be inconvenient.
Is there any simple way to do this, or should I plot the histogram and distribution fit step by step? Thank you for your time.
h = histfit(ndata(:,nn));
ax=app.UIAxes;
copyobj(h,ax);
delete(h)

 채택된 답변

Dilip Kumar
Dilip Kumar 2021년 12월 30일

0 개 추천

It's very simple:
histfit(app.UIaxes, ndata(:,nn))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 10월 20일

답변:

2021년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by