Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Polynomial surface fitting - least squares

Subject: Polynomial surface fitting - least squares

From: Yao Yevenyo Ziggah

Date: 2 Jan, 2013 20:14:09

Message: 1 of 1

Please i have X,Y,Z coordinate. How can i determine the best surface polynomial coefficients for each X,Y,Z Coordinates value because am confuse.

For example i know that for 2-D case for 1st order as an example:

Xn = a1Xo + a2Yo + a3
Yn = a4Xo + a5Yo + a6

From this i can get a matrix and using the relationship X= (A'*A)\A'*L
where X is the polynomial Coefficient(a1,a2,...a6) to be determned, A is the design matrix, L is the observation (Xn,Yn).

My problem is that, now i have coordinate in 3-D. How can i calculate for the best surface polynomial coefficients for X,Y,Z.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us