function val_max=mymax(A)

val_max=0;
n=numel(A)  %find the number of elements in an array
for i=[1:n]
    if val_max < A(i)
        val_max = A(i);
        display('New max value is found')
    else
        display('DO NOTHING')
    end
end

return
