Azzera filtri
Azzera filtri

Unable to use dsp.MovingAverage()

1 visualizzazione (ultimi 30 giorni)
Varun Gupta
Varun Gupta il 20 Lug 2020
Commentato: Varun Gupta il 21 Lug 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 Commenti
Walter Roberson
Walter Roberson il 20 Lug 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 il 21 Lug 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Get Started with DSP System Toolbox in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by