Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Finding nested function names?
Replies: 3   Last Post: Nov 20, 2013 7:38 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,945
Registered: 12/7/04
Re: Finding nested function names?
Posted: Jan 24, 2013 9:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Kristin " <kholmbeck@mac.com> wrote in message
> "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
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.