Q:

For the following set of equations,

0

2x1 + 2x2 + x3 = 2

 x2 + 2x3 = 1

 x1 + x2 + 3x3 = 3

write it in symbolic form and solve using the solve function. From the 

symbolic solution, create a vector of the numerical (double) 

equivalents.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> solve('2*x+2*y+z=2','y+2*z=1','x+y+3*z=3')

ans = 

 x: [1x1 sym]

 y: [1x1 sym]

 z: [1x1 sym]

>> double([ans.x ans.y ans.z])

ans =

 1.2000 -0.6000 0.8000

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now