% Jake Bobowski
% August 17, 2017
% Created using MATLAB R2014a

% Function to calculate the quadrature sum of the elements in vector n.
% (i.e. sqrt(n1^2 + n2^2 + ...)
function f = quadrature(n)
    total = 0;
    for i = 1:length(n)
        total = total + n(i)^2;
    end
    f = sqrt(total);
end