How to add a trendline to a histogram plot and not show the histogram?
8 ビュー (過去 30 日間)
古いコメントを表示
I need to add a trendline to the histogram and becuase I have several datasets I want to remove the histogram and keep only trendlines.
Any idea?
0 件のコメント
回答 (1 件)
darova
2020 年 2 月 25 日
Here is my solution
x = randi(100,1,100);
hist(x,20);
[y,x0] = hist(x,20);
hold on
plot(x0,y)
hold off
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!