Undefined function or variable 'numer'.

I'm running MATLAB Version: 9.1.0.441655 (R2016b) with Symbolic Math Toolbox Version 7.1 I have "restoredefaultpath" and "rehash toolboxcache"
Help?

 采纳的回答

You are looking at a Mupad routine for which there is no MATLAB interface. You will need to use
feval(symengine, 'numer', expression)

更多回答(1 个)

John D'Errico
John D'Errico 2016-11-19
There is no function in MATLAB called numer. That is why you get an undefined function or variable error.
Possibly you wanted to create a variable by that name. Possibly you wanted to use some other function. Could be you wanted the function numel. How can we possibly know? The crystal ball is so foggy these days.

2 个评论

From Mathworks 2016b Documentation:
numer(f) returns the numerator of the expression f.
numer regards the input as a rational expression: non-rational subexpressions such as sin(x), x^(1/2) etc. are internally replaced by "temporary variables". The numerator of this rationalized expression is computed, the temporary variables are finally replaced by the original subexpressions. -----------------------
I didn't advertise this useful function in Matlab's documentation; I just want to use it. Thanks
As I said, numer is NOT part of MATLAB. It is not accessible form MATLAB, but part of Mupad. You can only use it from there.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by