fh_sin = @sin
fh_sin =
function_handle with value:
@sin
functions (fh_sin)
ans =
struct with fields:
function: 'sin'
type: 'simple'
file: ''
which ('sin')
built-in (/usr/local/MATLAB/R2019a/toolbox/matlab/elfun/@double/sin) % double method
sin (pi)
ans =
1.2246e-16
fh_sin (pi)
ans =
1.2246e-16
cd subdir
[Warning: Function sin has the same name as a MATLAB builtin. We suggest you rename
the function to avoid a potential name conflict.]
[> In tstscript (line 11)]
functions (fh_sin)
ans =
struct with fields:
function: 'sin'
type: 'simple'
file: ''
which ('sin')
/home/caliari/Desktop/builtin-fh-tst/subdir/sin.m
sin (pi)
ans =
1.2246e-16
fh_sin (pi)
ans =
1.2246e-16
diary off