Determining if a variable is a function handle

82 views (last 30 days)
E. Bisson
E. Bisson on 26 Nov 2013
Commented: James Brice on 14 Nov 2019
Is there a function to determine if a variable is a function handle? ishandle works only for graphics or Java object handles.
Thanks

Accepted Answer

Walter Roberson
Walter Roberson on 26 Nov 2013
Edited: Walter Roberson on 26 Nov 2013
isa(YourVar,'function_handle')

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!