Code covered by the BSD License  

Highlights from
Toolbox Graph

image thumbnail
from Toolbox Graph by Gabriel Peyre
A toolbox to perform computations on graph.

norme(x)
function n = norme(x)

% norme - just the L^2 norm of a vector/matrix
%
%   n = norme(x);
%
%   Copyright (c) 2003 Gabriel Peyr

if iscell(x)
    n = 0;
    for i=1:length(x)
        n = n + norme(x{i});
    end
    return;
end

n = norm(x(:),'fro');

Contact us at files@mathworks.com