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')
Js ng
source share