how do you make a function out of a graph
Show older comments
I got the x points and the y points, so basically a graph. I need to make a function y(x) out of it. I know it is more of a math question but hoped I could get some help anyway. Thanks in advance.
1 Comment
Stephen23
on 24 Nov 2017
@Mohammed Rauf: there are infinite possible functions that exactly fit any finite set of data points. Which of those infinite functions do you want?
You basically have a choice between:
- you know something about the underlying physical process and have a mathamtical model, in which case search for "MATLAB curve fitting".
- you do not know the underlying physical process or it is too complex, in which case search for "MATLAB splines".
Accepted Answer
More Answers (0)
Categories
Find more on Spline Postprocessing 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!