Fitting multiple datasets simultaneously
조회 수: 8 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
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);
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!