# 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

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

## See also

[func2str](func2str), [isfunction\_handle](isfunction_handle).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
