System of parametric equations, symbolic solution
4 次查看(过去 30 天)
显示 更早的评论
Hello, I am having problem getting the solution of the following system in new version of matlab:
Matlab 2013b, mupad: solve([a+b=0,a+c=0],a) returns: piecewise([b = c, {-c}], [b href = ""</a> c, {}]) %i.e. it return the result a as a piecewise function of b and c
Matlab 2016b: live script solve(a+b,a+c,a,'ReturnConditions', true) returns: a: [0×1 sym] parameters: [1×0 sym] conditions: [0×1 sym]
How to get the solution including conditions from matlab 2016b, please ?
Thank You, Ondrej
0 个评论
回答(1 个)
Karan Gill
2017-1-10
The MATLAB "solve" ignores special cases. Here, it ignores the case "b = c" and thus cannot find a solution. Since it cannot find a solution, it returns empty sym.
My question is: Why do you need to solve these two equations for 1 variable?
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!