- #1

- 590

- 0

i know the total momentum, which i call Mtot, and i know the total force, which is Ftot, what i am looking for is R which i call (x, y, z) while i know that RxFtot=Mtot, so what i have done is

.....

Code:

```
syms x y z
R=[x y z];
RF=cross(R,Ftot);
```

now what i want to do somehow is get matlab to solve the 3 equations i get

Code:

`solve(RF(1)=Mtot(1),RF(2)=Mtot(2),RF(3)=Mtot(3))`

but matlab doesnt recognise the contents of RF as an equation or Mtot as an answer, it wants me to type an actual equation which is not what i need since this is a code which needs to work for every system.

how can i use the solve function for the contents of a matrix?