Problem with using subs() for products of symbolic variables

1 vue (au cours des 30 derniers jours)
James
James le 6 Jan 2012
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?

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 6 Jan 2012
use function subsex by MuPAD
out = feval(symengine,'subsex', b + 3*a*b, 'a*b = 0')

Plus de réponses (1)

Felipe G. Nievinski
Felipe G. Nievinski le 7 Mai 2013

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by