How to do a Multivariable Polynomial Fit with a known Structure

I have a bunch of data I would like to fit with a polynomial in order to model the current to force curve of a reluctance actuator. For simplicity I want the following structure: F(i,gap) = A*i^2 / (gap + B)^2. I was trying to use the polyfitn function, but I cannot seem to get it to work with the constant term dependence in the denominator. Any suggestions on how to do a least squares fit for this structure of polynomial?
Nick

Categories

Asked:

on 2 May 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!