Fitting multiple datasets simultaneously

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?

 Respuesta aceptada

Image Analyst
Image Analyst el 10 de Jun. de 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 comentario

Lizan
Lizan el 10 de Jun. de 2014
Yes thanks.. I forgot about polyfit and polyval.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.

Preguntada:

el 10 de Jun. de 2014

Comentada:

el 10 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by