matlab argmax code example Example: matlab argmax [argvalue, argmin] = min(x); [argvalue, argmax] = max(x);