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 ]

Posts: 69
Registered: 2/22/12
Re: Finding nested function names?
Posted: Jan 23, 2013 9:40 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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...

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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.