System of equations error
조회 수: 17 (최근 30일)
이전 댓글 표시
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])
댓글 수: 0
답변 (1개)
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])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!