Solve simultaneous equations with multi unknowns by Matlab
by FOX on 04:49 PM, under Mathematics
I just happened to find that today
Assume you have following equations:
- x+y = 2
- y+z = 2
- z+x = 2
These 3 equations yields out that:
- x = 1
- y = 1
- z = 1
To solve these or more complex ones than these, Just enter following code in Matlab
[x,y,z] = solve ('(x+y)=(2)', '(y+z)=(2)','(z+x)=(2)','x,y,z')
Leave rest of the work to your computer.