Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multivariable regression 1

Status
Not open for further replies.

ollenystrom

Electrical
Joined
Oct 6, 2006
Messages
4
Location
SE
Hi,
I would like to have a two varible polyfit in matlab. In mathcad I have used the function regress(XY,Z,2) for two dimensional polynomial regressin, where XY is a Nx2 matrix and Z is a Nx1. This gives me the 6 coeff I need to get
a0xy+a1y^2+a2y+a3C+a4x+a5x^2. In matlab, however, I can't find a similar function. All I find is regress or polyfit with one variable input. Does anyone have any idea how to do this?

Thanks

Olle
 
I took a second to look and found this.

I hope this is what you needed.

BsK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top