function v_norm = calc_norm(v,n)

v_norm=0;
for j = 1:n
    v_norm = v_norm + v(j)^2;
end

v_norm=sqrt(v_norm);


% Variante 2:
% -----------

% v_norm=sqrt(sum(v.*v));
