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
ber.m
Package: cooperative.rar [view]
Upload User: cjx922
Upload Date: 2017-12-13
Package Size: 205k
Code Size: 1k
Category:
Communication
Development Platform:
Matlab
- function [y]=ber(snr,modulation_type,fading_type);
- %根据调制方式和衰落方式计算单链路ber
- switch fading_type
- case 'Rayleigh'
- switch modulation_type
- case 'BPSK'
- y=(1-sqrt(snr./(1/2+snr)))/2;
- case 'QPSK'
- y=(1-sqrt(snr./(1+snr)))/2;
- otherwise
- error(['Modulation-type unkonwn:',modulation_type]);
- end
- case 'no'
- switch modulation_type
- case 'BPSK'
- y=q(sqrt(2*snr));
- case 'QPSK'
- y=q(sqrt(snr));
- otherwise
- error(['Modulation-type unkonwn:',modulation_type]);
- end
- otherwise
- error(['Fading-type unknown:',fading_type]);
- end