(Not recommended) Evaluate MuPAD expressions specifying their arguments
feval(symengine,...) is not recommended. Use equivalent Symbolic Math Toolbox™ functions that replace MuPAD® functions instead. For more information, see Compatibility Considerations.
Find eigenvalues of a matrix.
syms x y A = [x y; y x]; feval(symengine,'linalg::eigenvalues',A)
ans = [x + y, x - y]
Alternatively, the same calculation based on variables not defined in the MATLAB workspace is:
feval(symengine,'linalg::eigenvalues','matrix([[x,y],[y,x]])')
ans = [x + y, x - y]
Results returned by feval can differ from the results that you get
using a MuPAD notebook directly. The reason is that feval sets a lower
level of evaluation to achieve better performance.
feval does not open a MuPAD notebook, and therefore, you cannot use this function to access MuPAD graphics capabilities.