x = [1 2 3]
y = [3 2 1]

i = 1;
for el = x
    if x(i) > y(i)
        disp( y(i) )
    else
        disp( x(i) )
    end
    i = i + 1;
    
end