开发者

Add multiple hist fit to a figure, without the hist

I'm a matlab newbie, and i'd like to superpose some hist fit on a same figure. I know the function histfit, but unfortunatly i can't get to remove the hist and only keep the curve. I guess once i'll know how to do that i'll be able to add several curves using "hold on".

Thanx for any 开发者_JAVA百科answers or advices!


h = histfit(...) returns a vector of handles h, where h(1) is the handle to the histogram and h(2) is the handle to the fitted curve.

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

If you didn't assign a handle to the fitted histo, you can retrieve it using h = get(gca,'Children')

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜