How to smooth data to a negative curve

3 Ansichten (letzte 30 Tage)
Jonathan Couture
Jonathan Couture am 20 Jul. 2021
Bearbeitet: Matt J am 20 Jul. 2021
I'm looking to smooth out some experimental data.
Some recorded data points go upwards, altough this isn't possible for the given subject. Is there a way to smooth my data and at the same time, make sure that x_i < x_i-1, i.e., always with a negative curve.
  1 Kommentar
Jonathan Couture
Jonathan Couture am 20 Jul. 2021
For a bit more context, I've already used the 'smoothdata' command on it, and this is the output.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 20 Jul. 2021
Bearbeitet: Matt J am 20 Jul. 2021
Thie File Exchange submission allows you to do spline smoothing with monotonicity constraints:
You can also do Gaussian+constant fitting with the following File Exchange submission, and with bound constraints on the mu parameter:
With mu<=0, that would ensure monotonic descent over the range of your data.

Weitere Antworten (0)

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by