help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

handle to function


From: Juan Pablo Carbajal
Subject: handle to function
Date: Fri, 7 Nov 2014 20:44:34 +0100

Hi,

Is there a way to properly extract the name of a function in a
anonymous function used to change the interface of a function?

Example

funcH = @(x) size(x,2)

I would like to get size out of funcH.

I tried the following, it works but loks like a ugly hack

deblank (strtrim (strsplit (func2str (funcH), {")", "("}){3}))

Any better solution?

Note: It should work only when the anonymous function is used to
change the interface of a existing function.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]