%% Vector Magnitude
% Create a vector and calculate the magnitude.

v = [1 -2 3];
n = norm(v)

% Copyright 2012 The MathWorks, Inc.