Averaging oscillating data points
Show older comments
I have some multiple sets of temperature readings of some air heated by a pulsing heater, so the data is not strictly sinusoidal. I want to average these pulses to create a smooth curve, the main issue is that the oscillations in the data have varying frequency and amplitude, how can I do this?
I have been trying the movmean function which has done a reasonable job at creating an average of the points however some oscillations, albeit much smaller, still manifest. I believe this is due to the varying frequency, I might be able to try to create a smoother curve by trying different span values, however, I don't believe it will ever create an oscillation free curve due to the function never being in phase for the whole data set. I've looked into the smooth function but not really worked it out and I think I may get the same issue. Manually trying different parameters for each data set will be time consuming so I am hoping there is another way but if there isn't, I guess I don't have a choice. I could also do an iterative process maybe to generate a smooth curve but due to the varying frequency, I don't know if, I would know how to do that.
I have attached some of my data I'm am trying to do this for.
Note: The first rise in the data is not an oscillation I am trying to dampen, the oscillations I want to damp/smooth are relatively small to the range, on the scale of <0.5 peak to peak amplitude.
Accepted Answer
More Answers (0)
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!