Undefined function 'nanmean' in MATLAB R2013b

33 ビュー (過去 30 日間)
Beatriz De la Loma
Beatriz De la Loma 2014 年 3 月 7 日
コメント済み: Image Analyst 2014 年 3 月 7 日
When trying to access the nanmean function in MATLAB R2013b I get the following error:
Undefined function 'nanmean' for input arguments of type 'double'
This happens even when pasting the nanmean example given in the documentation.
Is this function not supported yet in MATLAB R2013b even if it is included in its documentation?

採用された回答

Mischa Kim
Mischa Kim 2014 年 3 月 7 日
編集済み: Mischa Kim 2014 年 3 月 7 日
Beatriz, you possibly have not installed/licensed the corresponding toolbox(es). What do you get when you execute in the MATLAB command window
which nanmean
It should be something like
C:\Program Files\MATLAB\R2013b\toolbox\stats\stats\nanmean.m
Alternatively you could use
ver
to get a list of all installed toolboxes and
license('test','Statistics_Toolbox')
which will return
ans =
1
if you have the Statistics Toolbox licensed.
  1 件のコメント
Image Analyst
Image Analyst 2014 年 3 月 7 日
How could she have it in her documentation if it's not installed? (Unless she got it from the online documentation instead of her own local documentation.) I don't have functions in my documentation for toolboxes I don't have installed.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by