필터 지우기
필터 지우기

I have a system of 3 linear equations with 2 variables. I can solve it by substitution but not with linsolve.

조회 수: 1 (최근 30일)
3*x/5+y/5=x
2*x/5+0.8*y=y
x+y=1

채택된 답변

Oddur Bjarnason
Oddur Bjarnason 2016년 10월 14일
I found the answer to my question:
3*x/5+y/5=x 2*x/5+0.8*y=y x+y=1
3*x/5-5/5*x+y/5=0 2*x/5+4/5*y-5/5*y=0 x+y=1
-2/5*x+y/5=0 2/5*x-1/5*y=0 x+y=1
A=[-2/5,1/5;2/5,-1/5;1,1] B=[0;0;1] linsolve(A,B)
ans = 0.3333 0.6667

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by