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
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])
类别
在 帮助中心 和 File Exchange 中查找有关 Common Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!