Unable to use dsp.MovingAverage()

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개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 7월 20일

댓글:

2020년 7월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by