MATLAB: Cannot find builtin function ‘waitbar’

builtin

Hi,
I am calling builtin fucntion to run waitbar in R2017b but got an error:
Cannot find builtin function 'waitbar'.
Is waitbar function not supported by builtin?
Thanks.

Best Answer

The builtin function is intended to call built-in functions, not functions implemented by MathWorks as function files with the .m or .mlx extensions. The waitbar function is implemented as a .m file. Compare with:
builtin('sin', pi) % sin is a built-in function, its sin.m is help text only
ans = 1.2246e-16
builtin('why') % why is implemented in the file why.m
Cannot find builtin function 'why'