<< func2str Function_handle functions str2func >>

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


str2func, func2str.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< func2str Function_handle functions str2func >>