You need to have a model to fit the data. Otherwise, there is no unique solution. You can pick any equation, and it data will fit to the data to some degree.
You may pick out a model first to fit your data onto. There a wide variety of models available in Matlab and the choice would depend on the kind of data that you have - if you can post the data here along with your question, you may get better recommendations.
To start with, I would recommend polyfit or lsqnonlin. I might also try playing with simple Neural Network models as a next step.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
3 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1066458
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1066458
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1066468
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1066468
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1067038
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/617038-how-can-i-find-an-equation-from-datas#comment_1067038
Sign in to comment.