Computes the Frobenius norm of the difference of two matrices function diff = frobenius_norm(A) Fabio Tozeto Ramos 05/10/05
0001 function diff = frobenius_norm(A, B) 0002 %Computes the Frobenius norm of the difference of two matrices 0003 %function diff = frobenius_norm(A) 0004 %Fabio Tozeto Ramos 05/10/05 0005 diff = sqrt(sum(sum(abs(A-B).^2,1),2));