Collecting the terms in a specific coefficient

4 Ansichten (letzte 30 Tage)
Kazim
Kazim am 17 Mai 2012
Hi, I want to ask how we can make Matlab do such a thing;
For ex; I have an expression ----> a*x^2+2*a^3*x
and I want this expression comes -----> x(a(x+2a^2))
I found a command named horner but horner only collects the terms for x or y but I want the expression nested for a or any specific term I say.
Thanks for your help

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 17 Mai 2012
syms a x
factor(a*x^2+2*a^3*x)

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by