Matlab code for solving the following system equation
이전 댓글 표시
2x + y + 5z = 5; 2x + 2y +3z = 7 ; x + 3y + 3z = 6
댓글 수: 3
Igor Arkhandeev
2020년 9월 18일
편집: Igor Arkhandeev
2020년 9월 18일
You should create two matrices:
A = [2, 1, 5; 2, 2, 3; 1, 3, 3];
B = [5;7;6];
Next a lot of ways to solve it. The most easiest:
x=inv(A)*B;
or
x = A\B;
Muhammad Chandra
2024년 6월 13일
y=〖2x〗^2+2x-20
Walter Roberson
2024년 6월 13일
I do not understand that remark?
답변 (2개)
Stephan
2020년 9월 18일
>> A = [2 1 5; 2 2 3; 1 3 3]
A =
2 1 5
2 2 3
1 3 3
>> b = [5; 7; 6]
b =
5
7
6
>> sol = A\b
sol =
2.4545
1.4545
-0.2727
>> test = A*sol
test =
5
7
6
Ronish
2024년 5월 14일
0 개 추천
Solve x=4=6
댓글 수: 1
Walter Roberson
2024년 5월 14일
It seems doubtful that this is the solution -- it does not solve for y or z !
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!