clear
A=[1,4,8,3,2,5]

val_max=0;
for i=[1:6]
    if val_max < A(i)
        val_max = A(i);
        display('New max value is found')
    else
        display('DO NOTHING')
    end
end

val_max
