Question: Use MATlab to solve this please and show code script 4. Solve the above set of equations symbolically by solve command. Follow below, study how
Use MATlab to solve this please and show code script
4. Solve the above set of equations symbolically by "solve" command. Follow below, study how it works. (Copy/paste in an m-file and run; otherwise, you have to retype the whole thing if there is a mistake.) syms x y z % Define symbols X, Y, Z. eql = x + 2y + 4*z == 20.5 % Move all arguments to one side: so that eql = 0 % Do the same for the other two equations. [xx, yy, zz] = solve (eql, eq2, eq3,x,y,z). % Solve equations symbolically % Note order of variable names. % The answers are rational numbers (long fractions) convert to double precision: xx = double (xx) % Repeat for yy, zz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
