Im using genetic algorithms and they insert their aproximation, but I need to insert extra variables to the function, how can I do this without declaring them global
This is the function and I need to insert the last part after options are the variables I need to insert as extra
[parmin, fval, exitflag] = ga(@errora,3,[],[],[],[],lb,ub,[],option... fHarm, fHz, fgemCoh, s, s2, i)
Tags: