Home » Source Code » » ask_1.m

ask_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 = 1/2 * erfc( sqrt( 0.25*10.^(SNRdB/10) ) );
plot(SNRdB, Pe, 'R');hold on;grid on;

% create signal
n = 1:NUMBER*FC*RESOLUTION;
xn = rand(1,NUMBER)>0.5; 
wc = sin(n/RESOLUTION*2*pi);
x = wc.*xn(ceil(n/FC/RESOLUTION));
Vt = sum( 0.5 * wc([1:FC*RESOLUTION]).^2 );;
for i=1:length(SNRdB)
    y = awgn(x, SNRdB(i)-10*log10(FC*RESOLUTION), 
...
...
(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

ask_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