Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#234 funtion pointer to string

v4.1 (minor)
closed
nobody
Engine (27)
5
2011-03-27
2010-04-08
Jocke
No

Add a type conversion of a function pointer to a string (func2str), e.g. similar to what is outputed when typing a function pointer variable on the command line (see below).

E.g.:

--> a=@var;

--> a

ans =
@var

Preferably func2str(@var) or func2str(a) should return the string 'var' and func2str of an anonymous function should return the function definition itself, func2str(@(t)2*t) should return the string '@(t)2*t'. Doing like this should be compatible to the Matlab implementation of the function.

Discussion

  • Samit Basu
    Samit Basu
    2011-03-27

    Added in 4133.

     
  • Samit Basu
    Samit Basu
    2011-03-27

    • status: open --> closed