Problem with using subs() for products of symbolic variables
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a question regarding the use of the subs function in the symbolic toolbox. It seems to have trouble with products of symbolic variables. For example, I would expect
>> subs(3*a*b+b,a*b,0) to produce b
Instead, it produces: b + 3*a*b
Can this be remedied?
댓글 수: 0
채택된 답변
Andrei Bobrov
2012년 1월 6일
use function subsex by MuPAD
out = feval(symengine,'subsex', b + 3*a*b, 'a*b = 0')
추가 답변 (1개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!