MATLAB: Undefined function ‘Fun” for input argument of type ‘double’ function z=fun(U)z='FPAeld1';end i need to call the first script from this algorithm but i'm getting error "undefined function 'Fun'.." why? Best Answer I see a "fun" but I don't see a "Fun" anywhere. Do you have a file Fun.m that you are trying to call? Or are you trying to call "fun"? Related SolutionsMATLAB: Tell the what is “I” represents and explain by seeing the code Quoting the documentation for the command MIN:[C,I] = min(...) finds the indices of the minimum values of A, and returns them in output vector I. If there are several identical minimum values, the index of the first one found is returned.So you get an index. Example codeA=[2 4 3 5 2][x,y]=min(A)2 is the smallest content. y is index 1 then. MATLAB: Error for ‘fmincon’ for global optimization It's a case sensitivity issue. Instead of 'LB' and 'UB', pass in 'lb' and 'ub'. Related QuestionCalling function in the same script to plot graphStruggling with ode45 MATLAB functionIntegral multiple infinite limitsFmincon works but GA won’t work
Best Answer