%% 2-Norm of Matrix
% Calculate the 2-norm of a matrix, which is the largest singular value.

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

% Copyright 2012 The MathWorks, Inc.