How to do a Multivariable Polynomial Fit with a known Structure

2 views (last 30 days)
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

Answers (1)

Shashank Prasanna
Shashank Prasanna on 2 May 2013
Without using any of the toolboxes you can fit custom equations following the steps

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!