MATLAB: How do i find argmax argmaxargmin how do i find argmax of, say x=[1 2] without any user defined function? Best Answer [argvalue, argmin] = min(x); [argvalue, argmax] = max(x); Related SolutionsMATLAB: Converting a maximizing problem into a minimizing program using linprog You just need to reverse the sign of f. Don't touch the rest. MATLAB: Construct anonymous function that returns the argmax of two symbolic variables Leo, use symMax = @(x) [max(x) find(x==max(x))] symMax([3,4]) Related Question
Best Answer