//linear system of equation clc; //eq1->5x-331y=3.5 //eq2->6x+397y=5.2 a=[5,-331;6,-397] b=[3.5;5.2] d=inv(a) c=d*b //Finding the value by multiplying inverse of the matrix disp("Value of x = ",c(1,1)) disp("Value of y = ",c(2,1)) disp(c)