isfunction_handle
Checks if value is a function handle.
Syntax
- l = isfunction_handle(func_handle)
Input argument
- func_handle - a function handle or other variable type.
Output argument
- l - a logical
Description
l = isfunction_handle(func_handle) checks if func_handle is a function handle. Returning true if it is.
Example
fh = str2func('cos')
isfunction_handle(fh)
fh = 3
isfunction_handle(fh)
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET