Tasked with solving the system of equations
이전 댓글 표시
solve the system of equations :
5x + 3y - 8z + 16w = -21
6x + 8z - 20w = 18
7x + 9y + 12z - 8w = 15
16y + 11z + 8w = 10
답변 (1개)
syms x y z w
RC = @() randi([-25 25]);
eqn1 = RC()*x + RC()*y + RC()*z + RC()*w == RC()
eqn2 = RC()*x + RC()*y + RC()*z + RC()*w == RC()
eqn3 = RC()*x + RC()*y + RC()*z + RC()*w == RC()
eqn4 = RC()*x + RC()*y + RC()*z + RC()*w == RC()
eqns = [eqn1;eqn2;eqn3;eqn4]
vars = [x, y, z, w];
[A,b] = equationsToMatrix(eqns, vars)
vars(:) == A\b
카테고리
도움말 센터 및 File Exchange에서 Language Fundamentals에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



