Is there possibility to retrieve the absolute path to the file containing a function represented by a function handle? For example:
%child folder containing test_fun.m file
handle = @test_fun
cd ..
%root folder - test_fun not available
path = GETPATHFROMHANDLE(handle)
Is there equivalent to GETPATHFROMHANDLE
function in MATLAB? It seems to by simple functionality, but I can't work it out. I know about func2str
and which
functions, but that doesn't work in that case.