Search for components in symbolic

2 ビュー (過去 30 日間)
Xin
Xin 2018 年 5 月 25 日
回答済み: Walter Roberson 2018 年 5 月 25 日
Hello. Let's say I have a symbolic function: exp(5*x)*x^3. Is it possible to let MATLAB automatically search for the component within the exponential part (result is 5), and the power of x (result is 3). Thanks!
  1 件のコメント
John D'Errico
John D'Errico 2018 年 5 月 25 日
I'd suggest your best chance is to use string processing techniques. Do the parsing yourself, since you know what you are looking for.

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 5 月 25 日
Unfortunately, this is not possible with the tools that are made available at the MATLAB level. You would need to use feval(symengine) or evalin(symengine) to invoke checking at the MuPAD symbolic engine level.
I do not recommend dipping into MuPAD for these operations. I find the matching operations of Maple or Mathematica to be easier to work with.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by