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])

답변 (1개)

Kevin Phung
Kevin Phung 2019년 3월 21일
편집: Kevin Phung 2019년 3월 21일

0 개 추천

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

질문:

2019년 3월 21일

편집:

2019년 3월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by