資源簡介
用MATLAB編的很簡單的數字基帶傳輸系統的仿真實現.
設置好參數后,按說明文件里的順序逐個調用子程序或直接調用主程序function [sampl,re_sampl]=system_1(A,F,P,D,snr,m,N)即可.
各程序和參數作用已在程序內標明.

代碼片段和文件信息
function?[adjudged_ami]=adjudg_1(ami_after_channelm)
%輸入信號ami_after_channel為經過AWGN信道后的AMI碼型數字信號,m為判決門限值;輸出變量adjudged_ami為抽樣判決后的信號。
%加噪AMI碼型數字序列抽樣判決的MATLAB仿真實現
for?i=1:length(ami_after_channel);
????temp=ami_after_channel;
????if?(temp(i)>m)
????????adjudged_ami(i)=1;
????elseif((temp(i)-m))
????????adjudged_ami(i)=0;
????else(temp(i)<-m)
????????adjudged_ami(i)=-1;
????end
end
%畫圖
l=length(ami_after_channel);
for?x=1:l*10
???m=ceil(x/10);
???adjudged_ami1(x)=adjudged_ami(m);
???ami_after_channel1(x)=ami_after_channel(m);
end
t=1:length(ami_after_channel1);
figure(5)
subplot(211)
plot(tami_after_channel1‘*g-‘);
axis([-0.2?300?-2.2?2.2]);
title(‘道加噪聲的信號‘);
subplot(212)
plot(tadjudged_ami1);
axis([-0.2?300?-1.2?1.2]);
title(‘抽樣判決以后的AMI碼‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????517??2008-12-30?09:12??system_1.m
?????文件????????929??2008-12-30?08:53??a_d_1.m
?????文件????????869??2008-12-29?20:29??adjudg_1.m
?????文件????????642??2008-12-29?20:28??channel_1.m
?????文件???????1171??2008-12-30?09:19??d_a_1.m
?????文件????????623??2008-12-29?20:30??signal_decod_1.m
?????文件????????730??2008-12-29?20:27??signal_encod_1.m
?????文件????????519??2009-03-15?18:30??數字基帶傳輸系統的MATLAB仿真實現.txt
?????文件?????235520??2008-12-22?14:50??通信工程專業綜合設計要求.doc
-----------?---------??----------?-----??----
???????????????241520????????????????????9
評論
共有 條評論