function_handle functions isfunction_handle >>

func2str


Return a function handle constructed from a string.


Syntax


func_handle = str2func(str)

Input argument


str

a string.

Output argument


func_handle

a function handle

Description


func_handle = str2func(str) returns a function handle constructed from the string str.

Example


fh = str2func('cos')
class(fh)

See also


func2str, isfunction_handle.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

function_handle functions isfunction_handle >>