필터 지우기
필터 지우기

Output of histfit without the plot

조회 수: 55 (최근 30일)
Otis
Otis 2020년 8월 26일
댓글: Star Strider 2023년 3월 3일
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.
Bill

채택된 답변

Star Strider
Star Strider 2020년 8월 26일
Try this:
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
set(gcf,'Visible','off')
CurveX = h(2).XData;
CurveY = h(2).YData;
.
  댓글 수: 8
Charlotte Han
Charlotte Han 2023년 3월 3일
Much appreciated!
Am I able to have two fits on the same plot but not on top of each other, but side by side like subplots?
Star Strider
Star Strider 2023년 3월 3일
I am not certain what you want to do. See if the tiledlayout function will work.
A Vote would be appreciated!
.

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

추가 답변 (1개)

Babar
Babar 2022년 5월 27일
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
set(gcf,'Visible','off')
CurveX = h(2).XData;
CurveY = h(2).YData;

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by