1

Does it exists a function similar to polyfit to interpolate n variables? polyfit use x, y, N, where N is the degree, instead I would like to use x, y, z, and N. Any idea?

MM92x
  • 548
  • 1
  • 4
  • 25
  • possible duplicate of [Multivariate polynomial regression with numpy](http://stackoverflow.com/questions/10988082/multivariate-polynomial-regression-with-numpy) – Ami Tavory May 31 '15 at 20:48
  • @AmiTavory - Not an exact duplicate. That uses `numpy` where this question is asking in MATLAB. – rayryeng May 31 '15 at 22:06
  • @rayryeng Sorry, missed that. Thanks. Retracted. – Ami Tavory May 31 '15 at 22:08
  • @AmiTavory - No problem at all. Just wanted to point it out. However, there are some concepts in that post that are applicable here. – rayryeng May 31 '15 at 22:21

1 Answers1

1

To the best of my knowledge, there isn't a direct function which you can use in MATLAB. However, you can solve the problem manually using fitlm.

musically_ut
  • 34,028
  • 8
  • 94
  • 106