Curve Fitting to high order exponential function

Hello everybody, this is my first question here.
What I was trying to do is to fit an exponential function to a data. I already tried Matlab's Curve Fitting Tool, however it only fits exponential functions up to 2nd order. My data is more complex than that unfortunately, therefore 2nd order fit doesn't give me good result. Do you know any other tools or methods that I can use in Matlab to make the exponential fitting higher than 2nd order ?
Thanks in advance
Anil

3 commentaires

dpb
dpb le 30 Déc 2015
You can fit any model you can write; however, I'd ask what the purpose of this fitting is? If for interpolation, you'll likely do better with a spline; if for model estimation then is there a candidate model based on first principles?
IOW, the last thing to do is to simply start throwing more terms into an equation and hoping for good result.
Seeing the data would possibly lead to better and more specific suggestions.
I wish I could up-vote a comment. I would do so for dpb's comment were that possible.
Hello dpb
Thanks for the comment. Let me go a little deeper into the problem. I am going to design a controller for a physical system. Before going into to design phase, I would like to create a nice model. A part of this system is a BLDC (as actuator). I would like to create motors model by its response to a step input. I am using its own driver card and I see that when I first introduce the step position change command, driver pass the command through some kind of filter to smoothen harsh change. Eventually, I would like to model this pre-filter hoping to fit output to a linear system. Its output looks alike a linear filter of high order with most of the states zero. I attached the output data to comment.

Connectez-vous pour commenter.

 Réponse acceptée

Rakesh Chavan
Rakesh Chavan le 5 Jan 2016

0 votes

Hi Alan,
Have you tried using the System Identification APP in MATLAB. It the App can be used for identifying linear models given data which I think you want to achieve. Documentation for the app can be found at the following link:
There are other functions like 'iddata' and 'ssest' where given data and order we can obtain a state space model for the plant. Kindly refer to the following link:
Hope this helps.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by