Passing variables from one m-file to another
Show older comments
I am a beginner in MATLAB, so I would really appreciate any guidance on this seemingly obvious question. I have to minimize a function f(x)[Currently using fmincon]. f(x) has a number of parameters which I want to initialise during the run time itself, and each parameter has its own range. [Currently I am doing it using rand.] So I have created the my_fun file which initialises the parameters and creates the function. Now, how do I pass the values of these parameters to the constraint file?
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display 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!