how do you find solutions of this marix equation using matlab 2019

1 view (last 30 days)
how to find solutions of this matrix using matlab 2019.
Ax = b
A = [3.8 -7.8;8.4 -16.8;-12.9 -41.4]
b = [1.3;2.8;-4.3]

Accepted Answer

Rik
Rik on 25 Feb 2020
Let's first do some algebra, and then solve it with a oneliner:
%{
Ax = b
A\Ax = A\b (A\A = 1)
x = A\b
%}
A = [3.8 -7.8;8.4 -16.8;-12.9 -41.4];
b = [1.3;2.8;-4.3];
x=A\b

More Answers (0)

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!