How to give a function options(changing some values within a function)

Hi,
I have just finished the implementation of an optimisation algorithm. Until now, I defined variables within the function, so everytime I wanted to change a specific variable(e.g. expiration value of a loop), I had to change the code. Now I want to have the possibility to call the function with new parameters/options) that changes some of the variables.
I have already finished a struct with default values and my idea was to load and then to look which values have to be changed.
Any ideas?
Thanks!

카테고리

도움말 센터File Exchange에서 Performance and Memory에 대해 자세히 알아보기

질문:

2013년 4월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by