資源簡(jiǎn)介
自適應(yīng)均衡算法的matlab仿真,可用于其他自適應(yīng)均衡算法中
代碼片段和文件信息
clear?all;
N=1024;??????????????????????????????%訓(xùn)練序列的長(zhǎng)度
m=128;???????????????????????????????%抽頭個(gè)數(shù)
step=0.001;??????????????????????????%步長(zhǎng)
g=10;???????????????????????????????%仿真次數(shù)
a=1;
d=0.0001;???????????????????????????%遺忘因子
pp=zeros(gN-m);
for?q=1:g
????t=1:N;
????s=a*sin(0.06*pi*t);
????figure(1);
????subplot(311);
????plot(treal(s));
????title(‘輸出信號(hào)時(shí)域波形‘);
????xlabel(‘n‘);
????ylabel(‘s‘);
????axis([0N-a-1a+1]);
????xn=awgn(s5‘measured‘);
????subplot(312);
????plot(txn);
????title(‘信號(hào)加噪聲以后的波形‘);
????y=zeros(1N);
????y(1:m)=xn(1:m);
????w=zer
評(píng)論
共有 條評(píng)論