histfit using Kernel function with a specific bandwith?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hi,
Can anyone tell me if there is way use histfit with a Kernel function, but also choose the bandwidth for the Kernel function. For example, I know I can use histfit like this:
histfit(data,10,'kernel')
...and get a nice fitted histogram with 10 bins. But, how can I change the bandwidth that is used in the Kernel function? I know how to do this using ksdensity:
[f,xi] = ksdensity(data,'width',mywidth)
...can this be applied to histfit?
Thanks in advance, Dan.
댓글 수: 0
답변 (1개)
Dan
2013년 10월 10일
댓글 수: 2
Francesca Lo Iacono
2022년 3월 23일
Hi!
is the following line the only one you have modified?
"pd = fitdist(data,dist,'width',w);"
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!