Fitting a line to a histogram

Hello! I'm trying to fit a smooth line to a histogram and only display that line instead of the bars. I tried it with the kernel density function fit, but it's somewhat too smooth. Is there a less smooth alternative? Thanks!

2 commentaires

Walter Roberson
Walter Roberson le 24 Sep 2015
What distribution are you trying to fit?
Zenid
Zenid le 24 Sep 2015
I have data from different time points and plotted them in 10min long bins. I'm trying to fit a line to the resulting histogram. The measurement timepoints are random.

Connectez-vous pour commenter.

Réponses (0)

Tags

Question posée :

le 24 Sep 2015

Commenté :

le 24 Sep 2015

Community Treasure Hunt

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

Start Hunting!

Translated by