Use
answer = mxIsInf(value);
instead of
answer = mexIsInf(value);
See Also
mxIsInf
© 1994-2005 The MathWorks, Inc.