Output of histfit without the plot

14 ビュー (過去 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