function somma = my_sum(x)

    somma = 0;
    
    for i=1:length(x)
        somma = somma + x(i);
    end

end
