Effacer les filtres
Effacer les filtres

Use kernel fitted to a histogram using histfit

7 vues (au cours des 30 derniers jours)
Gaëlle
Gaëlle le 10 Août 2013
Hi,
I am using histfit to get a kernel density function of my histogram. I am insterested in getting the maximum of this curve (or whatever value). Is there a way to get the vector (or the kernel) that Matlab plots (usingin e.g. the handle h=histfit)? I know I can do the same job with hist and ksdensity but it is a pain...
Thanks,
Gaelle

Réponse acceptée

Gaëlle
Gaëlle le 10 Août 2013
I just found how to get the data plotted from a handle:
hplot=plot(...);
y=get(hplot,'YData');
That is all I needed !

Plus de réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by