rational curve fitting function?

16 vues (au cours des 30 derniers jours)
Sierra Wang
Sierra Wang le 25 Fév 2020
Commenté : Sierra Wang le 25 Fév 2020
I've been using the Matlab Curve Fitting Toolbox to do rational fittings of the form y = p1/(x+q1) and it's been working great. However, I'll be processing a large number of data sets and it will be very tedious and time-consuming to do the fitting for each set individually in the app and copy the result into the workspace. So I was wondering if there's any Matlab function that can do the similar rational fitting?
  1 commentaire
darova
darova le 25 Fév 2020
Can you show your data?

Connectez-vous pour commenter.

Réponse acceptée

Steven Lord
Steven Lord le 25 Fév 2020
If they're all using the same type of fit, you could try fitting once interactively then generating code from the app and running that generated code with your subsequent data sets. Or you could start off setting up your fitoptions and creating your own fittype then call fit with each data set and your fittype. See this documentation page for a worked example.
  1 commentaire
Sierra Wang
Sierra Wang le 25 Fév 2020
Thank you so much I didnt know the toolbox can generate code

Connectez-vous pour commenter.

Plus de réponses (1)

Stephan
Stephan le 25 Fév 2020
Modifié(e) : Stephan le 25 Fév 2020
  1 commentaire
Sierra Wang
Sierra Wang le 25 Fév 2020
Thank you very much!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by