Is it possible to develop an equation from the data using MATLAB?
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello. So I am attempting to find an equation to accurately fit about 8,000 4 dimensional data points. I have both the Curve Fitting Tool Box as well as the the Statistics and Machine Learning Tool Box. I have already attempted to find an equation through brute force testing and using non-linear regression functions to find the coefficients. Is there anyway using one of the tool boxes or MATLAB code to input data points and get an equation to fit to as an output?
0 comentarios
Respuestas (2)
the cyclist
el 15 de Feb. de 2017
4 comentarios
Thompson Bliss
el 15 de Feb. de 2017
Editada: Thompson Bliss
el 15 de Feb. de 2017
John D'Errico
el 15 de Feb. de 2017
Note that a picture of your data is useless for anyone to help you, since they cannot paste it into MATLAB in numeric form. If you want help, then make it easy for someone to help you.
John D'Errico
el 15 de Feb. de 2017
Editada: John D'Errico
el 15 de Feb. de 2017
There are an infinite number of ways to predict any set of values like that you give. So this means you cannot get THE equation that predicts your relation, because any of the infinite number of possibilities would suffice.
There are may common solutions one might use, but NO from what you have said, I would never recommend polyfitn for this problem, even as the author of that tool. And trying to fit a polynomial model to the data using optimization tools is patently silly, since polyfitn fits the same model using a better algorithm for that problem, but requires none of the overhead or hassle of an optimizer. Regardless, a polynomial model is simply the wrong way to solve this problem.
I would normally suggest either a simple interpolant, such as scatteredInterpolant, or a tool that uses a distance based interpolation. So kriging is a common one, but also radial basis functions, splines, etc. In some cases, tools like 3-d lookup tables, which are designed to be interpolated, can be right. But you would need to know how to build those 3-d lookup tables, something that can take far more effort than you want to deal with.
Any of the above tools will not give you some nice function that you can write down and admire though. Just something that can be evaluated to predict the result.
Sadly, you give only a picture of your data, and since I will not spend the effort to type in your sample data from the picture, this is where I give up.
Ver también
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
