Unable to use the nanmean function

7 ビュー (過去 30 日間)
saadatnk8
saadatnk8 2015 年 9 月 21 日
回答済み: Steven Lord 2015 年 9 月 21 日
I just updated my matlab to 2015b but I can't find the nanmean function in it. When I write help nanmean it says nanmean not found. Is there a separate toolbox for that function, and if so which one? Thanks!
  1 件のコメント
Stephen23
Stephen23 2015 年 9 月 21 日
Use [name of internet search engine] to locate the documentation:
In the address the word "stats" means the Statistics Toolbox, so you know the toolbox without even opening the page. Also when you open that page the Contents on the left hand side look like this:
> All Products
> Statistics and Machine Learning Toolbox
> Descriptive Statistics and Visualization
> Descriptive Statistics
which also tell us that this function is in the Statistics toolbox.

サインインしてコメントする。

回答 (2 件)

Steven Lord
Steven Lord 2015 年 9 月 21 日
Since you're using release R2015b, instead of using NANMEAN from Statistics Toolbox you can use MEAN from MATLAB with the 'omitnan' flag.

Thorsten
Thorsten 2015 年 9 月 21 日
nanmean is part of the Statistics toolbox.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by