You are on page 1of 1

Q1:/

Solve the system


3x 1 - 6x 2  7x 3  3 ...(1)
9x 1 - 5x 3  3 ...(2)
5x 1 - 8x 2  6x 3  4 ...(3)
by using MATLAB Inverse.

Solution

% Solve system of linear equations by using MATLAB Inverse


clear
clc
A= [3 -6 7; 9 0 -5; 5 -8 6];
B = [3 3 -4];
X=A^-1*B'
Error=A*X-B'

You might also like