builtin - Execute built-in function from overloaded method

Syntax

builtin(function, x1, ..., xn)
[y1, ..., yn] = builtin(function, x1, ..., xn)

Description

builtin is used in methods that overload built-in functions to execute the original built-in function. If function is a string containing the name of a built-in function, then

builtin(function, x1, ..., xn) evaluates the specified function at the given arguments x1 through xn. The function argument must be a string containing a valid function name. function cannot be a function handle.

[y1, ..., yn] = builtin(function, x1, ..., xn) returns multiple output arguments.

Remarks

builtin(...) is the same as feval(...) except that it calls the original built-in version of the function even if an overloaded one exists. (For this to work you must never overload builtin.)

See Also

feval

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS