The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: iterate over many inline functions?
Posted: Dec 12, 2012 1:46 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Paul " <> wrote in message
> 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.

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 at NCTM 1994-2018. All Rights Reserved.