Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How can I code these 2 equations?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello
Is it possible to write these as 1-1 assignment?
given.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238643/image.png)
A is
, b is
and
is
. u and l are
matrices
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238644/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238645/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238646/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238647/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238648/image.png)
![lambda.GIF](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238649/lambda.gif)
The problematic part is the sum and the
or
condition. How should I modify this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238650/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238651/image.png)
lambda_2k1 = max((b-sum(A*x_c))/A(:,k)) + (u(k) - l(k))/2;
5 件のコメント
David K.
2019 年 9 月 17 日
Yes you do. Also, I think you may want to make sure the sum is summing the elements in the dimension you need them to be. If they are not, use sum( . . . , 2).
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!