Unable to use dsp.MovingAverage()

1 vue (au cours des 30 derniers jours)
Varun Gupta
Varun Gupta le 20 Juil 2020
Commenté : Varun Gupta le 21 Juil 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 commentaires
Walter Roberson
Walter Roberson le 20 Juil 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 le 21 Juil 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur C Code Generation dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by