Date: Jan 24, 2013 9:49 AM
Author: Steven Lord
Subject: Re: Finding nested function names?



"Kristin " <kholmbeck@mac.com> wrote in message
news:kdq6u8$sqi$1@newscl01ah.mathworks.com...
> "Alexis" wrote in message <k9bhur$33e$1@newscl01ah.mathworks.com>...
>> I would like a list of the nested functions within a function. Is there
>> any way of getting this information? Example:
>>
>> function myfunc
>>
>> findSubFuncs % gives a list of the subfunctions within this function,
>> like {'subFunc1', 'subFunc2', 'subFunc3', 'subFunc4'}
>>
>> function subFunc1
>> end
>>
>> function subFunc2
>> end
>>
>> function subFunc3
>> end
>>
>> function subFunc4
>> end
>> end

>
> I am curious about this as well. The annoying way to do this is to read
> the mfile as a text file and search etc etc.... But I am interested in a
> good solution...


Out of curiosity, what would you use this information to do?

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com