Thursday, August 13, 2009

func2str

Constructs a function name string from a function handle

Syntax

  • s = func2str(fhandle)

Description

func2str(fhandle) constructs a string, s, that holds the name of the function to which the function handle, fhandle, belongs.

When you need to perform a string operation, such as compare or display, on a function handle, you can use func2str to construct a string bearing the function name.

Examples

To create a function name string from the function handle, @humps

  • funname = func2str(@humps)

    funname =

    humps

No comments:

Post a Comment