How can I perform multivariable polynomial curve fitting?
42 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mitchell
am 15 Mai 2013
Kommentiert: Abdullah Danyal Saeed
am 24 Nov. 2016
Hey Community! I am looking to perform a polynomial curve fit on a set of data so that I get a multivariable polynomial. I have successfully been able to fit a variable on an independent set using polyfit(). In my case, that was "voltage as a function of current." I want to be able to perform a fit that gives me a function for something like, "voltage as a function of current and temperature." Any ideas?
Cheers!
1 Kommentar
Akzeptierte Antwort
Shashank Prasanna
am 15 Mai 2013
You can use the curve fitting toolbox (cftool) or the statistics toolbox (regress, LinearModel.fit, NonLinearModel.fit) to perform multiple linear regression.
If you don't have any of those toolboxes then you can set up your own optimization problem to fit your function as below:
2 Kommentare
Shashank Prasanna
am 15 Mai 2013
Bearbeitet: Shashank Prasanna
am 15 Mai 2013
1) Yes Z = f(X,Y)
2) If you don't have same size data, you may have to interpolate.
Weitere Antworten (2)
cr
am 15 Mai 2013
I dont think basic Matlab has got that ability. You will need curve fitting toolbox to do surface fitting. See this link: http://www.mathworks.in/help/curvefit/surface-fitting.html
Regards.
David Graff
am 27 Apr. 2015
Use the excellent polyfitn package at http://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn . I love it and use it all the time.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!