How to call a different function for each iteration of a loop?
Show older comments
If I have created a set of functions with names corresponding to indices, How do I later call that function with the index I am on? e.g. in a "for" loop, call "minfunt1" on iteration 1, "minfunt2" on iteration 2, etc.?
Accepted Answer
More Answers (1)
Image Analyst
on 3 Jun 2014
0 votes
I don't understand how this is different than your prior answer in http://www.mathworks.com/matlabcentral/answers/132127#answer_139195 which I answered and you accepted.
3 Comments
Darya
on 3 Jun 2014
Image Analyst
on 3 Jun 2014
How different are these functions? Totally different? Or are they very similar functions that you can just pass j into?
Darya
on 3 Jun 2014
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!