Syntax for solving linear equations
古いコメントを表示
I have found out that I have phased my problem less complicated then I think it is, so I'll try again. I have a set of data points on my y-axis which has the expression: a-x*b-c*y
(a,b,c are constants, x and y are the variables to be optimized)
In an ideal case of x and y, this expression equals a straight line
a-x*b-c*y=d*z+e
(d and e are constant),
I want x and y to fit this straight line the best, so I want to optimize:
abs( a-x*b-c*y- (d*z+e) ) = 0 with the conditions (x,y >= 0 and x,y =< 1)
採用された回答
その他の回答 (2 件)
Torsten
2016 年 10 月 31 日
x=(b>0);
y=(c>0);
Best wishes
Torsten.
Alexandra Harkai
2016 年 10 月 31 日
編集済み: Walter Roberson
2016 年 10 月 31 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Linear Least Squares についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!