Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
6e340c2c
Commit
6e340c2c
authored
Sep 18, 2011
by
Stéphane Adjemian
Browse files
Fixed typos in headers and cosmetic changes.
parent
7c95c82b
Changes
2
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/general/nandemean.m
View file @
6e340c2c
...
...
@@ -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
));
el
se
otherwi
se
error
(
'
descriptive_statistics
:
:
nandemean
::
This
function
is
not
implemented
for
arrays
with
dimension
greater
than
two
!
'
)
end
\ No newline at end of file
matlab/utilities/general/nanmean.m
View file @
6e340c2c
...
...
@@ -3,7 +3,7 @@ function y = nanmean(x)
%
@info
:
%!
@deftypefn
{
Function
File
}
{
@var
{
y
}
=
}
nanmean
(
@var
{
x
})
%!
@anchor
{
nan
de
mean
}
%!
@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
)
.
T
he
de
mean
ed
x
matrix
.
%!
Matlab
vector
(
1
-
by
-
N
)
,
t
he
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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment