How I can get coefficients matrix in MATLAB from the set of linear equations?

4.1k Views Asked by At

I am working in MATLAB and having problem in extraction of coefficients out of my set of symbolic linear equations. Equations are as such

R =

[0.8978*c - 0.8047*b - 0.020299*a,  0.8978*d - 0.094800*b - 0.106799*a]

[ 0.091199*a + 0.13200*c - 0.8047*d, 0.091199*b - 0.106799*c + 0.0575*d]

How I can get the coefficient matrix, that is my result will look like

R_coeff =

 -0.0203   -0.8047    0.8978         0
 -0.1068   -0.0948         0    0.8978
  0.0912         0    0.1320   -0.8047
       0    0.0912   -0.1068    0.0575

Thanks