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?

 채택된 답변

Image Analyst
Image Analyst 2014년 6월 10일

1 개 추천

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

Lizan
Lizan 2014년 6월 10일
Yes thanks.. I forgot about polyfit and polyval.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

질문:

2014년 6월 10일

댓글:

2014년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by