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 Center および File ExchangeLinear Least Squares についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by