Fixed typos in headers and cosmetic changes.

time-shift
Stéphane Adjemian (Charybdis) 2011-09-18 00:12:33 +02:00
parent 7c95c82bfa
commit 6e340c2ce8
2 changed files with 7 additions and 6 deletions

View File

@ -49,10 +49,11 @@ function c = nandemean(x)
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
if ndim(x)==1
switch ndim(x)
case 1
c = x-nanmean(x);
elseif ndim(x)==2
case 2
c = bsxfun(@minus,x,nanmean(x));
else
otherwise
error('descriptive_statistics::nandemean:: This function is not implemented for arrays with dimension greater than two!')
end

View File

@ -3,7 +3,7 @@ function y = nanmean(x)
%@info:
%! @deftypefn {Function File} {@var{y} =} nanmean (@var{x})
%! @anchor{nandemean}
%! @anchor{nanmean}
%! @sp 1
%! Computes the mean of each column of a matrix with some NaNs.
%! @sp 2
@ -16,7 +16,7 @@ function y = nanmean(x)
%! @strong{Outputs}
%! @table @ @var
%! @item y
%! Matlab matrix (T-by-N). The demeaned x matrix.
%! Matlab vector (1-by-N), the mean.
%! @end table
%! @sp 2
%! @strong{This function is called by:}
@ -25,7 +25,7 @@ function y = nanmean(x)
%! @sp 2
%! @strong{This function calls:}
%! @sp 1
%! @ref{ndim},
%! @ref{ndim}
%!
%! @end deftypefn
%@eod: