A= ceil(10*rand(1,20));    % p25_max.m
n=length(A);
[maxval maxindex] = max(A);
maxval, maxindex
