Variable width histogram and curve on the same graph?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Anas Rao
am 14 Jan. 2017
Kommentiert: Anas Rao
am 17 Jan. 2017
I want to make a hostogram of 6-7 data and each have different width. Further, as I have converted the curve into histogram. So, I want to make such that curve, variable width histogram on the same graph. Kindly tell me how I make it
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 15 Jan. 2017
Call histogram with unequally-spaced edges.
x = 49*rand(1, 1e4);
histogram(x, (1:7).^2)
To plot a histogram and another curve on the same axes, look at the hold function.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots 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!