필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I code these 2 equations?

조회 수: 1 (최근 30일)
Richárd Tóth
Richárd Tóth 2019년 9월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello
Is it possible to write these as 1-1 assignment? given.
A is , b is and is . u and l are matrices
lambda.GIF
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
David K.
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).
Richárd Tóth
Richárd Tóth 2019년 9월 17일
Yes, summing on each row is needed and omitting the 2 gives different(incorrect) result

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by