Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I code these 2 equations?

1 visualización (últimos 30 días)
Richárd Tóth
Richárd Tóth el 17 de Sept. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
David K.
David K. el 17 de Sept. de 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).
Richárd Tóth
Richárd Tóth el 17 de Sept. de 2019
Yes, summing on each row is needed and omitting the 2 gives different(incorrect) result

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by