필터 지우기
필터 지우기

How to solve a system of linear equations ?

조회 수: 2 (최근 30일)
Sudo
Sudo 2013년 3월 5일
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 :)

채택된 답변

Friedrich
Friedrich 2013년 3월 6일
편집: Friedrich 2013년 3월 6일
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.

추가 답변 (1개)

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by