Error in dsp.LMSFilter

3 次查看(过去 30 天)
Rehman Tanim
Rehman Tanim 2020-11-23
评论: Rehman Tanim 2020-11-23
Error in
matlab.system.SystemProp/setProperties
Error in dsp.LMSFilter
Error in adaptivefilters
(line 8)
h = dsp.LMSFilter(15,
0.0007);
  1 个评论
Rehman Tanim
Rehman Tanim 2020-11-23
This is the code:
%% 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.0007);
[y,e] = filter(h,x,d);
% [y,e] = FECG_detector(x,d);
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');

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by