at the moment I am using the fmincon function to identify parameters in a given equation to find a selected point x.
I have the value for x and the fmincon should find the values for (u,v,t)
Therefore the code is running with a global variable. Does anyone know how to use this without any global variables????
fun = @myfun;
X = fmincon(fun,x0,A,b,Aeq,beq,minW,maxW,,opts);
functionF = myfun(ZW)
u = ZW(1);
v = ZW(2);
t = ZW(3);