how can I find the maximum value of a parameter running within a loop
Show older comments
Dear All,
I want to extract the maximum of a parameter in aloop through its various ieterations, something like below:
for i=1:100
A=f(i)
B=f(A,i)
C=f(B,i)
end
How can I find the maximum of C and also display corresponding A and B?
I would appreciate your response in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Particle & Nuclear Physics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!