builtin
Execute built-in function from overloaded method
Description
builtin(
executes the built-in function func
,x1,...,xn
)func
with the input arguments
x1
through xn
. A built-in
function is part of the MATLAB® executable.
When you define a method that overloads a built-in function for a class, you can
use builtin
to execute the original built-in function from within
the overload.
Examples
Input Arguments
Tips
You can use the syntax
which
to check whether a function is built-in.function
builtin
does not work properly if overloaded.The example shows a simple way of customizing the default display for a class. For more display customization options, see Custom Display Interface.
Extended Capabilities
Version History
Introduced before R2006a