Unable to use dsp.MovingAverage()

1 次查看(过去 30 天)
Varun Gupta
Varun Gupta 2020-7-20
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 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with DSP System Toolbox 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by