MATLAB Answers

Output of histfit without the plot

조회 수: 23(최근 30일)
Otis 26 Aug 2020
댓글: Star Strider 26 Aug 2020
Is there a way to get the fitted curve generated by histfit without it being plotted? I want the curve it generates, but I don't want the plot it generates. Thanks times a million in advance.

채택된 답변

Star Strider
Star Strider 26 Aug 2020
Try this:
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
CurveX = h(2).XData;
CurveY = h(2).YData;
  댓글 수: 4
Star Strider
Star Strider 26 Aug 2020
As always, my pleasure!

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

추가 답변(0개)



Community Treasure Hunt

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

Start Hunting!

Translated by