フィルターのクリア

extracting variables from syms

1 回表示 (過去 30 日間)
Franco
Franco 2011 年 12 月 1 日
lets say that I have the equation 2*x^2 + 3*y^2. I need to do 2 things. I need to extract the 2*x^2, and then I need to extract the coefficient 2. Anyone know how to do that?

採用された回答

Walter Roberson
Walter Roberson 2011 年 12 月 1 日
See indets and coeff
Please note that both of those are part of the MuPAD Standard Library, available for calling within MuPAD itself, but there is no MATLAB interface to them. You will need to use feval(symengine,...) or evalin(symengine,...) to access them.

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by