1

I have thw following problem

Considering the matrix

M = [1 2 3; 4 5 6; 7 8 10]

And the vector

E = [Ex; Ey; Ez]

And

B = [1; 4; 10]

Does anyone knows how to find the values of E components in matlab, considering

M*E=B?
Mac
  • 991
  • 3
  • 11
  • 22

1 Answers1

4

Use the following command, using mldivide or the equivalent operator \:

E = M\B

This results in:

E =

    4.0000
   -6.0000
    3.0000

Verification:

M*E

ans =

 1.0000
 4.0000
10.0000
Nick
  • 3,143
  • 20
  • 34