Output of histfit without the plot
    13 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
采纳的回答
  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
 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
      
      
 2023-3-3
				                                                                         A Vote would be appreciated!  
.
更多回答(1 个)
  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;
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





