clear; clc;

data = randi(100, 1, 5)
max = data(1);
pos = 1;
for i = 2 : length(data)
    if data(i) > max
        max = data(i);
        pos = i;
    end
end
max
pos