lsqlin with more than one set of data

조회 수: 1 (최근 30일)
Ainy
Ainy 2013년 10월 28일
댓글: Thanigaivel Raja T 2016년 8월 23일
I have two sets of data such that y1 = A1*x and y2 = A2*x
I can find x with use of lsqlin: x = lsqlin(A1,y1)
or
x = lsqlin(A2,y2)
But since x is the same in both cases, is there a way to find x when simultaniously optimizing case 1 and case 2? y1 and y2 are functions of time with different shape and no overlapping sample points.
  댓글 수: 3
Torsten
Torsten 2016년 8월 22일
[y1;y2] = [A1;A2]*x
So define y=[y1;y2] and L=[A1;A2] in lsqlin.
Best wishes
Torsten.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Least Squares에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by