System of equations error

7 vues (au cours des 30 derniers jours)
bsta
bsta le 21 Mar 2019
Modifié(e) : Kevin Phung le 21 Mar 2019
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])

Réponses (1)

Kevin Phung
Kevin Phung le 21 Mar 2019
Modifié(e) : Kevin Phung le 21 Mar 2019
syms x y z
sol=solve([x==5 ,-6*x+10*y-3*z == 0,-y+51*z==0],[x y z])

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by