Is there a way to get the name of the local function that is being run in Matlab? -


is there way name of local function being run in matlab?

note: mfilename returns name of .m file, not name of local function.

dbstack returns struct full function call stack. information top level function, use:

s=dbstack fname=s(1).name 

Comments