% M-Skript veknorm.m
function val = veknorm(z)
val = 0.0;
for j = 1:length(z)
    val = val+z(j)^2;
end
val = sqrt(val);
% end
