Home » Source Code » » dpsk_1.m

dpsk_1.m ( File view )

From:
  • By 2010-08-27
  • View(s):6
  • Download(s):0
  • Point(s): 1
			function [ output_args ] = Untitled1( input_args )
clear;
hold off;
% define
A = 1; % 单位幅度
NUMBER = 10000; % 试验总数
FC = 4;%*10^6; %载波频率
RESOLUTION = 100; % 载波每个周期用RESOLUTION个点表示
SNRdB = 0:1:10;
% 理论曲线
Pe = erfc( sqrt( 10.^(SNRdB/10) ) );
plot(SNRdB, Pe, 'R');hold on;grid on;

% create signal
n = 1/FC/RESOLUTION:1/FC/RESOLUTION:NUMBER;
an = (rand(1,NUMBER-1)>0.5)*2-1; %双极波
xn(1) = 1;
for i=1:NUMBER-1
    xn(i+1) = -1*an(i)*xn(i);
end
wc = sin(n*FC*2*pi);
x = wc.*xn(ceil(n));
Vt = 0;
for i=1:length(SNRdB)
    y = awgn(x, SNRdB(i)-10*log10(FC*RESOLUTION/2), 'measured');
    y = y.*wc;
    for j=1:NUMBER

...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
fsk_ask_psk0.00 B11-06-09|13:22
ask_1.m849.00 B31-12-08|22:52
ask_2.m901.00 B01-01-09|00:15
dpsk_1.m958.00 B31-12-08|23:20
fsk_1.m1.17 kB31-12-08|23:11
fsk_2.m1.05 kB31-12-08|23:14
psk_1.m833.00 B31-12-08|23:17
...
Sponsored links

dpsk_1.m (4.15 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D