
3D Least squares polynomial fit in x and y 1.0 File ID: 78704 


 3D Least squares polynomial fit in x and y 1.0 License: Shareware File Size: 10.0 KB Downloads: 30
Submit Rating: 



3D Least squares polynomial fit in x and y 1.0 Description 

Description: Often, measured data is comprised of N sampled values of z, evaluated at N locations (x,y). With this function, you can calculate the coefficients of the bestfit x,y polynomial using a linear least squares approximation.
You can use this function if you have a set of N data triplets x,y,z, and you want to find a polynomial f(x,y) of a specific form (i.e. you know the terms you want to include (e.g. x^2, xy^3, constant, x^3, etc.) in your fitting polynomial.
License: Shareware Related: approximationyou, squares, Linear, triplets, specific, Fitting, constant, Include, terms, polynomial, values, sampled, comprised, measured, evaluated, Locations, bestfit, coefficients O/S:BSD, Linux, Solaris, Mac OS X File Size: 10.0 KB Downloads: 30


More Similar Code 

Calculates slope and intercept for linear regression of data with errors in X and Y. The errors can be specified as varying point to point, as can the correlation of the errors in X and Y.
The uncertainty in the slope and intercept are also estimated.
This follows the method in D. York, N. Evensen, M. Martinez, J. Delgado "Unified equations for the slope, intercept, and standard errors of the best straight line"...
POLYFIT_ROOTS Leastsquares polynomial fit to data. [R,K] = POLYFIT_ROOTS(X, Y, N, TOL) finds the roots R and constant K so that the polynomial P(s) = K*(sR(1))*(sR(2))* ... *(sR(N)) is the best leastsquares fit to the data Y at points...
DISTMATLATLON Computes distance matrix between list of coords in X and Y D = DISTMATLATLON(X,Y) for matrices X and Y, with columns [Lat Lon], returns the distance matrix where the (i,j)th entry is the distance between the i'th...
We present a Matlab toolbox which can solve basic problems related to the Total Least Squares (TLS) method in the modeling. By illustrative examples we show how to use the TLS method for solution of:  linear regression model  nonlinear...
Use coeffs = fit2dPolySVD(x, y, z, order) to fit a polynomial of x and y so that it provides a best fit to the data z. Uses SVD which is robust even if the data is degenerate. Will always produce a leastsquares best fit to the data even if...
[coef, RSquared]=plotfit(x,y,polyorder) A simple function that accepts x,y data pairs in in the vectors "x" and "y", fits it to a polynomial of order "polyorder", plots the data and the fit, and displays the fit...
ORTHLLS2D returns the Orthogonal Linear Least Squares estimate for parameters of line a x + b y + c = 0
function f = OrthLLS2D(x, y)
Inputs x and y must be real vectors of equal size. Output f is the real vector [a b c]...
calculates surface area A and its standard uncertainty uA for any arbitrary polygon in a plane given by coordinates x and y and their respective standard uncertainties ux and uy. The inputs are assumed to be VECTORS, x, ux, y and uy all should...
The two inputs X and Y are vectors defining a set of N points. The function uses Lagrange's method to find the N1th order polynomial that passes through all these points, and returns in P the N coefficients defining that polynomial. Then,...
Removes nonlinear trend from data DETRENDNONLIN Removes nonlinear trend from a vector. The nonlinearity is removed by subtracting a leastsquares polynomial fit. Y = DETRENDNONLIN(X) subtracts a second order polynomial fit... 
User Review for 3D Least squares polynomial fit in x and y 
