Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: iterate over many inline functions?
Posted:
Dec 12, 2012 1:46 PM
|
|
"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
|
|
|
|