Undefined function 'movmean' for input arguments of type 'double'

Hi, I wish to use function movmean in my code. I am able to run mean function, while using movmean i get the error as " Undefined function 'movmean' for input arguments of type 'double'.have statistical toolbox installed. I m using R2014a

回答 (1 件)

Star Strider
Star Strider 2017 年 10 月 28 日

2 投票

The movmean function was introduced in R2016a.
You can use a Moving Average Filter (link) to get essentially the same result.

3 件のコメント

david hj
david hj 2022 年 1 月 21 日
I'm using R2020b but faced the same problem. any updates?
Star Strider
Star Strider 2022 年 1 月 21 日
@david hj — The movmean function is part of core MATLAB, so no Toolboxes are required.
The only solution I can offer is to run these from a script or the Command Window:
restoredefaultpath
rehash toolboxcache
If the problem persists, Contact Support.
.
Steven Lord
Steven Lord 2022 年 1 月 21 日
@david hj Can you show how you're trying to call movmean and the full and exact text of the error message you receive (all the text displayed in red in the Command Window)? The exact message may include details that will help determine why movmean isn't working on your machine (which is a different reason than the original poster.)

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

カテゴリ

ヘルプ センター および File ExchangeWeather and Atmospheric Science についてさらに検索

タグ

質問済み:

2017 年 10 月 28 日

コメント済み:

2022 年 1 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by