reverse-shooting

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

meanc.m (302B)


      1 % meanc.m     m=meanc(x)
      2 %
      3 % Returns in a row vector m the means of the columns of x.  Basically this
      4 % is just like mean(x) except that if passed a ROW vector, it will return
      5 % the same row vector rather than a scalar mean.
      6 
      7 function m=meanc(x);
      8 
      9 if size(x,1)~=1;
     10    m=mean(x);
     11 else;
     12    m=x;
     13 end;
     14