필터 지우기
필터 지우기

System of parametric equations, symbolic solution

조회 수: 1 (최근 30일)
Ondrej Kovarik
Ondrej Kovarik 2017년 1월 3일
답변: Karan Gill 2017년 1월 10일
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

답변 (1개)

Karan Gill
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?

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by