Home » Source Code » » fsk_1.m

## fsk_1.m ( File view )

From：
• By 2010-08-27
• View(s)：6
• 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
...
...
```
...
Expand＞ ＜Close

Point(s): 1

0 lines left, continue to read

## File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
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
...
• Sent successfully!
• 1 point

### fsk_1.m (4.15 kB)

Need 1 point

Get point immediately by PayPal

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

Submit your source codes. Get more point

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

### 切换到中文版？

CodeForge Chinese Version
CodeForge English Version

### ^_^"Oops ...

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

### Warm tip!

Favorite by Ctrl+D