No BSD License  

Highlights from
linstats 2006b

image thumbnail

linstats 2006b

by

 

27 Dec 2006 (Updated )

linear multivariate statistics

mat_compare( x, y, tol )
function eq = mat_compare( x, y, tol )
% function, comare two matrices to see
% where one is a copy of the other to a given tolerance


if ndims(x) ~= ndims(y) || any( size(x) ~= size(y) )
    eq = false;
    return
end

if nargin < 3
    tol = 1e-8;
end

eq = rank( x-y, tol)==0;

Contact us