Passing variables from one m-file to another
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Solver Outputs and Iterative Display en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!