clear; clc;

data = randi(100, 1, 5)

loc = 1;
for i = 2 : length(data)
    if data(i) > data(loc)
        loc = i;
    end
end
loc
max = data(loc)

max = data(1);
for item = data(2 :end)
    if item > max
        max = item;
    end
end
max

