Fixed typos in headers and cosmetic changes.
parent
7c95c82bfa
commit
6e340c2ce8
|
@ -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
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue