%% 1-Norm of Vector
% Calculate the 1-norm of a vector, which is the sum of the element magnitudes.

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

% Copyright 2012 The MathWorks, Inc.