Skip to Main Content Skip to Search
Product Documentation

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.

Tips

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

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS