Thread Subject: Curve Fitting

Subject: Curve Fitting

From: Rockeratw Atw

Date: 23 Oct, 2008 19:13:03

Message: 1 of 2

Hi,

I have a set of four battery discharging curves at discharging rate 1A, 10A, 30A, 40A respectively. I have an equation that describes the battery discharging behavior, so what I need to do now is to find the parameters of this equation so that the equation could predict other discharging rates.

I have used least squares fit to find a unique set of parameters based on the data points i took on the four curves, but the results are not very good.

I want to use some other fitting methods for parameter identification such as linear interpolation or bicubic spline fit but don't know how to program them. Could someone please provides me with some examples, references? I would very appreciated it.

Subject: Curve Fitting

From: John D'Errico

Date: 24 Oct, 2008 09:26:01

Message: 2 of 2

"Rockeratw Atw" <northcarolinastate@gmail.com> wrote in message <gdqibv$g77$1@fred.mathworks.com>...
> Hi,
>
> I have a set of four battery discharging curves at discharging rate 1A, 10A, 30A, 40A respectively. I have an equation that describes the battery discharging behavior, so what I need to do now is to find the parameters of this equation so that the equation could predict other discharging rates.
>
> I have used least squares fit to find a unique set of parameters based on the data points i took on the four curves, but the results are not very good.
>
> I want to use some other fitting methods for parameter identification such as linear interpolation or bicubic spline fit but don't know how to program them. Could someone please provides me with some examples, references? I would very appreciated it.
>

You can't really use a spline to infer the parameters
of a nonlinear equation, so I'm unsure what you are
asking. Or maybe you are asking for something that
you can't do.

If your least squares estimation was inadequate in
your opinion, then either you have noisy data, or
the model is not really correct. Perhaps there are
other factors that enter in, or the model is only an
approximation.

But, why not do a simple spline fit to each curve,
one such spline at each discharge rate.

Take your pick of any spline that you want,
although in matlab without the splines toolbox,
you will be limited to either spline or pchip. One
of these should be adequate though.

Now, to predict a value at any other discharge rate,
you have 4 spline curves. You can predict a value
on those curves using ppval. Now you have 4 points.
Interpolate in discharge rate. Again, take your pick
of methods here. Anything from a linear interpolant
using interp1, to a spline or pchip, or even a cubic
interpolating polynomial.

HTH,
John

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
curve fitting t... S N RAY 24 Oct, 2008 03:13:59
parameter ident... Rockeratw Atw 23 Oct, 2008 15:15:05
curve fitting Rockeratw Atw 23 Oct, 2008 15:15:05
cubic spline Rockeratw Atw 23 Oct, 2008 15:15:05
rssFeed for this Thread

Contact us at files@mathworks.com