How to add a trendline to a histogram plot and not show the histogram?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
darova
am 25 Feb. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!