MATLAB Answers

Search for components in symbolic

조회 수: 1(최근 30일)
Xin 25 May 2018
답변: Walter Roberson 25 May 2018
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 25 May 2018
I'd suggest your best chance is to use string processing techniques. Do the parsing yourself, since you know what you are looking for.

로그인 to comment.

채택된 답변

Walter Roberson
Walter Roberson 25 May 2018
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

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by