How to fit this data?
14 views (last 30 days)
Show older comments
Hello all,
I have raw data (column B) and fit data (column A). I am wondering what fit was it?. Can anyone please have a look at the data and fit (graph) and clarify my doubt?. How do I perform it in MatLab?. Kindly help.
3 Comments
jonas
on 3 Aug 2018
No problem, I've put the comment in the answers section so that the question is flagged as answered. As stated, if you provide some data I could try to identify the method used (granted that it's one of the standard ones).
Accepted Answer
jonas
on 3 Aug 2018
Edited: jonas
on 3 Aug 2018
Looks more like a smoothing filter than a fitted equation. Perhaps a moving average.
A moving average filter goes over your data point-by-point and calculates an average within a range (window) from that point. See for example the MATLAB functions movmean and smooth . Your fit does not look parametric in nature as it retains the noise (although damped out). More likely some type of filter.
Try smoothing your data with different methods, using the smooth function, and see if you can reproduce the results. If you provide data, I'd be willing to help.
7 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!