System of equations error

Why do I recvie an error saying: Undefined function or variable 'z'
when trying to solve the following system of equations:
sol=solve(['5=x','-6x+10y-3z=0','-y+51z=0'],[x,y,z])

Respuestas (1)

Kevin Phung
Kevin Phung el 21 de Mzo. de 2019
Editada: Kevin Phung el 21 de Mzo. de 2019

0 votos

syms x y z
sol=solve([x==5 ,-6*x+10*y-3*z == 0,-y+51*z==0],[x y z])

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Mzo. de 2019

Editada:

el 21 de Mzo. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by