Output of histfit without the plot
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Otis
am 26 Aug. 2020
Kommentiert: Star Strider
am 3 Mär. 2023
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
0 Kommentare
Akzeptierte Antwort
Star Strider
am 26 Aug. 2020
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 Kommentare
Charlotte Han
am 3 Mär. 2023
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
am 3 Mär. 2023
A Vote would be appreciated!
.
Weitere Antworten (1)
Babar
am 27 Mai 2022
r = normrnd(10,1,100,1); % Create Data
h = histfit(r,6);
set(gcf,'Visible','off')
CurveX = h(2).XData;
CurveY = h(2).YData;
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

