| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
m = nanmean(X) m = nanmean(X,DIM)
X | Financial times series object. |
DIM | Dimension along which the operation is conducted. |
nanmean for financial times series objects is based on the Statistics Toolbox function nanmean. See nanmean in the Statistics Toolbox documentation.
m = nanmean(X) returns the sample mean of a financial time series object X, treating NaNs as missing values. m is a row vector containing the mean value of the non-NaN elements in each series.
m = nanmean(X,DIM) takes the mean along dimension DIM of X.
To compute nanmean for the following dates:
dates = {'01-Jan-2007';'02-Jan-2007';'03-Jan-2007'};
f = fints(dates, magic(3));
f.series1(1) = nan;
f.series2(3) = nan;
f.series3(2) = nan;
nmean = nanmean(f)
nmean =
3.5000 3.0000 4.0000mean, nanmax, nanmin, nanstd, nansum, nanvar
![]() | nanmax | nanmedian | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |