MATLAB: Do I receive an error when using the MFUN function to evaluate a Hermite polynomial in the Extended Symbolic Math Toolbox

Extended Symbolic Math ToolboxhermitemaplemfunorthopolypolynomialsymbolicSymbolic Math Toolboxwith

I issue the following command:
val = mfun('H',2,.01);
I expect to receive the numerical result -1.9996, but instead I receive the following error message:
??? Error using ==> error
Too many output arguments.
Error in ==> mfun at 79
r = eval(r,emsg);

Best Answer

The error is due to the fact that Maple leaves the call to the Hermite polynomial function "H(2,.01)" unevaluated. This is because the "orthopoly" package to which the H function belongs has not been explicitly made available. To work around this problem, use the following syntax:
with(orthopoly);
val = mfun('H',2,.01);