Home » Source Code » » fsk_1.m

fsk_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; %%载波频率
FC2 = 2;
RESOLUTION = 64; % 载波每个周期用RESOLUTION个点表示
SNRdB = 0:1:10;%%%%%%%%%
FR = FC * RESOLUTION;
% 理论曲线
Pe = 1/2 * erfc( sqrt( 0.5*10.^(SNRdB/10) ) );
plot(SNRdB, Pe, 'R');hold on;grid on;

% create signal
n = 1:NUMBER*FR;
xn = rand(1,NUMBER)>0.5;
wc1 = cos(n/RESOLUTION*2*pi);
wc2 = cos(n/RESOLUTION*2*pi/2);
x = wc1.*xn(ceil(n/FR)) + wc2.*(1-xn(ceil(n/FR)));
Vt = 0;
for i=1:length(SNRdB)
    y = awgn(x, SNRdB(i)-10*log10(FR/2), 'measured');
    for j=1:NUMBER
        z1 = y([(j-1)*FR+1:j*FR]); % 取出点
        z1 = conv(z1, wc1([1:FR])); %匹配滤波器
        z1 = z1 .* wc1([1:length(z1)]);
        z1 = sum(z1([FR-RESOLUTION/2+1:FR
...
...
(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

fsk_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