Fitting multiple datasets simultaneously

조회 수: 8 (최근 30일)
Lizan
Lizan 2014년 6월 10일
댓글: Lizan 2014년 6월 10일
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일
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개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by