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: iterate over many inline functions?
Replies: 2   Last Post: Dec 13, 2012 11:08 AM

Advanced Search

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

Posts: 2
Registered: 12/12/12
Re: iterate over many inline functions?
Posted: Dec 13, 2012 11:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Steven_Lord" <slord@mathworks.com> wrote in message <kaajdd$afp$1@newscl01ah.mathworks.com>...
> "Paul " <pjanowsk@eden.rutgers.edu> wrote in message
> news:kaac8o$c9r$1@newscl01ah.mathworks.com...

> > Is there a way to group many inline functions into some single object so
> > that I can then iterate over them?

> Use a cell array.

> > In my specific case, I have defined a set of 20 basis functions that I am
> > using for a regression procedure. I've named the 20 inline functions like
> > so:
> >
> > phi1
> > phi2
> > ...
> > phi20

> Don't do this. See question 6 in the Programming section of the newsgroup
> FAQ; one of the alternatives it suggests is a cell array.
> http://matlab.wikia.com/wiki/FAQ
> --
> Steve Lord
> slord@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Thanks, that was very helpful and solved issue!

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.