Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
How to check if a variable is a function handle?
Replies:
4
Last Post:
Jul 18, 2013 9:38 AM




Re: How to check if a variable is a function handle?
Posted:
Jul 18, 2013 7:24 AM


Quintafeira, 18 de Julho de 2013 11:30:14 UTC+1, Jos (10584) escreveu: > Rui wrote in message <6df3a965375349f4b7911e74e7e31945@googlegroups.com>... > > > Is there a way to check if variable is a function handle? I couldn't find any reference on Mathworks' is* page[1]. > > > > > > > > > Thanks in advance, > > > Rui Maciel > > > > > > [1] http://www.mathworks.com/help/matlab/ref/is.html > > > > Yes, there is: > > > > isa(fh,'function_handle') > > > > hth > > ~ Jos
Thanks for the help, Jos.
As a future reference, this property is implicitly defined in Mathwork's page on the isa() function [1], with the 'function_handle' label being included in the 'MATLAB fundamental types' section.
Once again, thanks for the help, Rui Maciel
[1] http://www.mathworks.com/help/matlab/ref/isa.html



