Add multiple histogram shapes to a non-histogram shape

I am new to matlab and I would like to impose some histology on one figure. I know the histfit function, but unfortunately I can’t remove the hist and save the curve. I think, as soon as I know how to do this, I can add a few curves using hold.

Thanx for any answers or tips!

+7
matlab plot figure
source share
1 answer

h = histfit(...) returns the handle vector h, where h (1) is the histogram handle and h (2) is the handle of the curve set.

use delete(h(1)) to delete the histogram.

If you did not assign a handle to the installed histo, you can get it with h = get(gca,'Children')

+10
source share

All Articles