Fminsearch in a for loop
Show older comments
Hi there, I am trying to minimise the difference between two vectors using fminsearch. I have managed to do this using the code atttached however the variable 'beta_hold' and 'rate' in this sample code are just 1 vector from two 12x12 arrays. I need to somehow loop over the below code for every 'rate' and 'beta_hold' in the 12x12 array but I can't seem to figure out how to use a loop within multiple functions. If anyone could help with this or point me in the right direction that would be appreicated!
Accepted Answer
More Answers (0)
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!