How to linear fit two y variables in same plot?

Hello,
I ploted (x1,y1) and (x2,y2) in same plot where all variables are different. I want to find linear fit for each of them ie x1,y1 and x2,y2 , However, the basic fit ui let me choose either data 1 or data 2 linear fit, but not both. How can I fit both data series simultaneously? thank you.

 채택된 답변

추가 답변 (1개)

Torsten
Torsten 2022년 5월 25일
편집: Torsten 2022년 5월 25일

0 개 추천

Choose X = [x1,x2], Y = [y1,y2] as data to be fitted.

카테고리

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

태그

질문:

2022년 5월 25일

답변:

2022년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by