System of equations error

조회 수: 17 (최근 30일)
bsta
bsta 2019년 3월 21일
편집: Kevin Phung 2019년 3월 21일
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일
syms x y z
sol=solve([x==5 ,-6*x+10*y-3*z == 0,-y+51*z==0],[x y z])

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by