Fitting multiple datasets simultaneously

8 vues (au cours des 30 derniers jours)
Lizan
Lizan le 10 Juin 2014
Commenté : Lizan le 10 Juin 2014
Hi,
I was wondering if there is a way do a linear fit on 2 datasets simultaneously? It seems like you can only do a linear fit on one dataset with the figure fitting function?

Réponse acceptée

Image Analyst
Image Analyst le 10 Juin 2014
I don't know what that function is. But why not just do it in code with the polyfit() function? Just stitch together the multiple x and y before passing in
coefficients = polyfit(multipleXs, multipleYs, 1);
  1 commentaire
Lizan
Lizan le 10 Juin 2014
Yes thanks.. I forgot about polyfit and polyval.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by