builtin

Calls the built-in function f with given inputs, if applicable. If there is a custom function that overrides f, the custom function implementation will be ignored and the built-in function will be executed.

Syntax

builtin(f, ...)

Inputs

f
Name of built-in function.
Type: string
...
Inputs for f, where applicable.
Type: Any input.

Example

Executing the built-in sine function:

function y = sin(x) y = 0.5; end
x = 45;
printf('Executing the overridden sine function for %d\n', x);
sin(x)
printf('\nExecuting the built-in sine function for %d\n', x);
builtin('sin', x)
Executing the overridden sine function for 45
ans = 0.5
Executing the built-in sine function for 45
ans = 0.850903525