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 Kommentare

Walter Roberson
Walter Roberson am 24 Sep. 2015
What distribution are you trying to fit?
Zenid
Zenid am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Gefragt:

am 24 Sep. 2015

Kommentiert:

am 24 Sep. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by