reverse-shooting

Matlab scripts for reverse shooting
Log | Files | Refs | README

demean.m (167B)


      1 %  demean.m     demeans a matrix
      2 %      Note:   x - mean(x) will not work!
      3 
      4 function x = demean(x);
      5 
      6 if ~isempty(x);
      7 	x = x - kron(ones(size(x,1),1),meannan(x));
      8 end;