MATLAB: Solve the a,b,c,d,e and f from the simultaneous equations below:

problems

-2a+5b+c+3d+4e-f=0
2a-b-5c-2d+6e+4f=1
-a+6b-4c-5d+3e-f= -6
4a+3b-6c-5d-2e-2f=10
-3a+6b+4c+2d-6e+4f= -6
2a+4b+4c+4d+5e-4f= -2

Best Answer

Read about solve() and vpasolve()
syms a b c d e f
e1=-2*a+5*b+c+3*d+4*e-f==0
e2=2*a-b-5*c-2*d+6*e+4*f==1
e3=-a+6*b-4*c-5*d+3*e-f==-6
e4=4*a+3*b-6*c-5*d-2*e-2*f==10
e5=-3*a+6*b+4*c+2*d-6*e+4*f== -6
e6=2*a+4*b+4*c+4*d+5*e-4*f== -2
[a,b,c,d,e,f]=vpasolve(e1,e2,e3,e4,e5,e6,a,b,c,d,e,f)