Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ip_06_06.m
Package: 现代通信系统matlab版源代码.zip [view]
Upload User: loeagle
Upload Date: 2013-03-02
Package Size: 1236k
Code Size: 1k
Category:
Communication Document
Development Platform:
Matlab
- % MATLAB script for Illustrative Problem 6, Chapter 6.
- echo on
- N=52;
- noise_var=0.25;
- sigma=sqrt(noise_var); % standard deviation of the noise
- for i=1:N, % generate data sequence
- if (rand<0.5),
- I(i)=1;
- else
- I(i)=-1;
- end;
- echo off ;
- end;
- echo on ;
- % for channel1:
- A=1;
- B=[0.1 -0.25 1 -0.25 0.1];
- rec_sig1=filter(B,A,I); % the received signal without noise for channel 1
- rec_sig1=rec_sig1([3:N]); % to compensate for the delay in filtering
- for i=1:N-2,
- noise(i)=gngauss(sigma);
- echo off ;
- end;
- echo on ;
- y1=rec_sig1+noise; % received signal with noise for channel 1
- % for channel 2:
- A=1;
- B=[-0.2 0.5 1 0.5 -0.2];
- rec_sig2=filter(B,A,I); % the received signal without noise for channel 2
- rec_sig2=rec_sig2(3:N); % to compensate for the delay in filtering
- for i=1:N-2,
- noise(i)=gngauss(sigma);
- echo off ;
- end;
- echo on ;
- y2=rec_sig2+noise; % received signal with noise for channel 2
- % plotting commands follow