Borrar filtros
Borrar filtros

How to solve a system of linear equations ?

2 visualizaciones (últimos 30 días)
Sudo
Sudo el 5 de Mzo. de 2013
Hi,how can i solve this system in Mupad and get only the positive real solutions.
x + y + z = 50
5x + y + 0.1z = 50
Thank You :)

Respuesta aceptada

Friedrich
Friedrich el 6 de Mzo. de 2013
Editada: Friedrich el 6 de Mzo. de 2013
Hi,
You have 3 degrees of freedom and 2 eqations, so there is NO unique solution.
So doing some basic math gives:
z free to choose and
x = 0.225*z
y = 50 - 1.225*z
So when you choose z to be 40 you get x = 9 and y = 1.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 5 de Mzo. de 2013
sol=[1 1 1;5 1 0.1]\[50;50]
  2 comentarios
Sudo
Sudo el 6 de Mzo. de 2013
this doesn't give a real solution.the solution i want should be 9,1 and 40.
Youssef  Khmou
Youssef Khmou el 6 de Mzo. de 2013
hi :
a=[1 1 1;5 1 0.1]
b=[50 50]';
sol=pinv(a)*b; %Pseudo inverse

Iniciar sesión para comentar.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by