Solving equations using solve() function
14 次查看(过去 30 天)
显示 更早的评论
The code below gives an empty Ans although it is clear that the solution is 0,0,0,0.
syms a b c d
res = solve(a+b,a+b+c,a+b+c+d,a)
Hence why do we get an empty answer?
0 个评论
采纳的回答
Torsten
2017-10-5
sol = solve([a+b==0,a+b+c==0,a+b+c+d==0,a==0],[a b c d]);
sol.a
sol.b
sol.c
sol.d
Best wishes
Torsten.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!