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 (C:\Program Files\MATLAB\R2019b\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')
D:\SVN\Octave\builtin-fh-tst\subdir\sin.m
sin (pi)
ans =
1.2246e-16
fh_sin (pi)
ans =
1.2246e-16
diary off