MATLAB Answers

Unable to use dsp.MovingAverage()

9 ビュー (過去 30 日間)
Varun Gupta
Varun Gupta 2020 年 7 月 20 日
コメント済み: Varun Gupta 2020 年 7 月 21 日
I'm trying to implement the Moving Average Filter using 'dsp.MovingAverage()'
----My input----
%define the filter with properties
movavg = dsp.MovingAverage(10)
-----Error Output ------
' Unable to resolve the name dsp.MovingAverage.'
Please help me resolve this.
Thanks.

  2 件のコメント

Walter Roberson
Walter Roberson 2020 年 7 月 20 日
Do you have DSP toolbox installed?
Are you trying to do this within a MATLAB Function Block in Simulink?
Are you trying to do this in the context of code generation?
Varun Gupta
Varun Gupta 2020 年 7 月 21 日
Installing the DSP toolbox solved it.
For other libraries, MATLAB generates the error that this plugin is needed, for this it didn't somhow.
Thank you.

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

回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by