Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How can I code these 2 equations?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello
Is it possible to write these as 1-1 assignment?
given.
A is
, b is
and
is
. u and l are
matrices

The problematic part is the sum and the
or
condition. How should I modify this?
lambda_2k1 = max((b-sum(A*x_c))/A(:,k)) + (u(k) - l(k))/2;
5 Kommentare
David K.
am 17 Sep. 2019
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).
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!