Collecting the terms in a specific coefficient

4 ビュー (過去 30 日間)
Kazim
Kazim 2012 年 5 月 17 日
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

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 5 月 17 日
syms a x
factor(a*x^2+2*a^3*x)
  1 件のコメント
Kazim
Kazim 2012 年 5 月 17 日
Thank you very much Andrei

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by