Undefined variable "dsp" or class

4 ビュー (過去 30 日間)
Rehman Tanim
Rehman Tanim 2020 年 11 月 25 日
回答済み: Walter Roberson 2020 年 11 月 25 日
%% Applying the adaptive filter
% The adaptive noise canceller can use almost any adaptive procedure to perform its task.
% For simplicity, we shall use the least-mean-square (LMS) adaptive filter with 15
% coefficients and a step size of 0.00007. With these settings, the adaptive noise canceller
% converges reasonably well after a few seconds of adaptation--certainly a reasonable
% period to wait given this particular diagnostic application.
h = dsp.LMSfilter(15, 0.001);
[y,e] = filter(h,x,d);
% [y,e] = FECG_detector(x,d);
subplot(3,3,5); plot(t,d,'c',t,e,'r');
%axis([0 7.0 -4 4]);
grid;
xlabel('Time [sec]');
ylabel('Voltage [mV]');
title('Convergence of Adaptive Noise Canceller');
legend('Measured Signal','Error Signal');
getting this error:
Undefined variable "dsp" or class
"dsp.LMSfilter".
Can anyone fix this?

採用された回答

Walter Roberson
Walter Roberson 2020 年 11 月 25 日
You need to license and install DSP System Toolbox; https://www.mathworks.com/products/dsp-system.html

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAdaptive Filters についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by