數字基帶傳輸系統的MATLAB仿真實現
function [sampl,re_sampl]=system_1(A,F,P,D,snr,m,N)
輸入變量A ,F,P分別為輸入信號的幅度、頻率和相位,D為量化電平數,snr
為信道信噪比,N為D/A轉換時的內插點數;輸出變量sampl為抽樣后的輸入
信號,re_sampl為恢復出的輸入信號。
數字基帶傳輸系統的MATLAB仿真實現
[sampl,quant,pcm]=a_d_1(A,F,P,D)
[changed_ami]=signal_encod_1(pcm)
[ami_after_channel]=channel_1(changed_ami,snr)
[adjudged_ami]=adjudg_1(ami_after_channel,m)
re_pcm=signal_decod_1(adjudged_ami)
[re_voltag,re_sampl,re_sampl1]=d_a_1(re_pcm,sampl,D,N)
標簽:
function
re_sampl
MATLAB
system
上傳時間:
2017-04-21
上傳用戶:tzl1975
Generate Possion Dis.
step1:Generate a random number between [0,1]
step2:Let u=F(x)=1-[(1/e)x]
step3:Slove x=1/F(u)
step4:Repeat Step1~Step3 by using different u,you can get x1,x2,x3,...,xn
step5:If the first packet was generated at time [0], than the
second packet will be generated at time [0+x1],The third packet will be generated at time [0+x1+x2],
and so on ….
Random-number generation
1.static method random from class Math
-Returns doubles in the range 0.0 <= x < 1.0
2.class Random from package java.util
-Can produce pseudorandom boolean, byte, float, double, int, long and Gaussian values
-Is seeded with the current time of day to generate different sequences of numbers each time the program executes
標簽:
Generate
Possion
between
random
上傳時間:
2017-05-25
上傳用戶:bibirnovis