Solving symbolic equation with additional assumptions
이전 댓글 표시
My question is somehow related to this topic: http://www.mathworks.com/matlabcentral/answers/322874-how-to-calculate-eigensystem-of-symbolic-matrix-with-orthogonal-elements
Once again, lets assume simple symbolic equation:
syms a b
solve(a+a.*b==2)
also, lets assume that a.*b is always ==0; so the solution of the eq is supposed to be a=-2; How can I implement such assumption (a.*b==0) into matlab code? Any help appreciated!
답변 (1개)
Torsten
2017년 2월 2일
syms a b
[sola, solb] = solve([a+a*b == 2, a*b == 0], [a, b])
Best wishes
Torsten.
댓글 수: 2
Pawel Rochowski
2017년 2월 2일
Torsten
2017년 2월 2일
You will have to consult the 2014a documentation on how to use "solve" for your MATLAB version.
For the recent version, the syntax is as stated:
https://de.mathworks.com/help/symbolic/solve.html
Best wishes
Torsten.
카테고리
도움말 센터 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!