%% Matrix norms
% File: MatrixNorms.m
A=randi(5,5)
%% Norm 1
% Start doing from inner parentheses, if feels all right!
max(sum(abs(A),1))   % Norm 1 : max of column sums
norm(A,1)            % Check
%% Norm Inf
max(sum(abs(A),2))   % Norm "infinity": max of row-sums
norm(A,Inf)          % Check
%% Another matrix:
A=magic(5)         
[max(sum(abs(A),2)) norm(A,Inf)]   % Compare
[max(sum(abs(A),1)) norm(A,1)]     % Compare