function [result] = myMax(data)

    result = data(1);
    for i = 1 : length(data)
        if data(i) > result
            result = data(i);
        end
    end

end

