📄 wondfulmu.m
字号:
x = 10*randn(1,500); % 作为系统的输入
b = fir1(63,0.5) %确定未知系统
d = filter(b,1,x) %期望信号
mu =0.015; %固定步长值
h = adaptfilt.lms(64,mu); %模拟建模
[y,e] = filter(h,x,d); % 模拟系统输出
subplot(3,2,1); plot(1:500,d);axis([450,480,-25,25]);
title(‘未知系统输出');xlabel('采样点'); ylabel('输出');
subplot(3,2,3); plot(1:500,y);axis([450,480,-25,25]);
title('模拟系统输出');xlabel('采样点'); ylabel('输出');
subplot(3,2,5); stem(1:500,e);axis([450,480,-1,1]);
title(‘误差值’);xlabel(采样点'); ylabel('误差');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -