stderr.m 101 B

12345678
  1. function y=stderr(x,dim)
  2. if ~exist('dim','var')
  3. dim=1;
  4. end
  5. y=std(x,0,dim)/sqrt(size(x,dim)-1);