Unable to use dsp.MovingAverage()

2 visualizaciones (últimos 30 días)
Varun Gupta
Varun Gupta el 20 de Jul. de 2020
Comentada: Varun Gupta el 21 de Jul. de 2020
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 comentarios
Walter Roberson
Walter Roberson el 20 de Jul. de 2020
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 el 21 de Jul. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre C Code Generation en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by