亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cdma.m

?? this file explain you about cdma and ofdm
?? M
字號:
function [summary,BaseSignal,subsignal]=cdma(link,physchan,multi,misc)
%CDMA	This models a CDMA transmission, returning the error analysis
%	summary=cdma(link,physchan,misc)
%	All inputs and output from CDMA are arrays of parameters
%	describing properties of the link, channel, and other.
%	
%	LINK :	This is a row vector of the following parameters
%	1. TotalWords: Number of data words to simulate
%	2. Process Gain: This sets the CDMA chip rate gain. It is
%		also the maximum number of users.
%	3. Number Users: This is the number of users in the system
%	
%	PHYSCHAN: These describe the physical channel model to use
%	1. SNR: Signal to noise ratio (white noise) in dB.
%		Setting to >=300 gives no noise.
%	2. Peak Power Compression: Amount of clipping to apply,
%		in dB. Set to 0 for no clipping.
%
%	MULTI: FIR model to use for the multipath delay.
%		e.g. Multi=[1 0 0 0 0.5], has the direct signal
%		at time 0, and a single reflection of 50% strength
%		of the direct signal at a delay of 4 samples.
%	MISC:
%	1. Over-Sampling: This sets the amount of oversampling of
%		the time waveform, so that small time errors
%		can be modified. Oversampling effects the multipath
%		time, as the multipath is applied to the oversampled
%		signal. Oversampling increases the processing time
%		a large amount. Typically an increase of 5 times for
%		oversampling of 2, and 7 times for oversampling of 10.
%	2. Link Type: Sets whether to simulate the forward link, or the 
%		reverse link linktype = 0, forward link (using orthogonal 
%		Walsh codes) linktype = 1, reverse link (uncorrelated 
%		non-orthogonal codes) This is an optional parameter, with 
%		the default being the forward link.
%		
%
%	SUMMARY: Results of the simulation
%	1. BER: bit error rate
%	2. Number of data words in error.
%
%	Copyright (c) Eric Lawrey 1997

%===================================
%	Required external functions:
%	(They just have to be in the same directory, or in the Matlab path)
%	trancdma.m 
%		genrand.m
%		walsh.m
%	reccdma.m 
%		walsh.m
%		genrand.m
%		subsamp.m
%	zerohold.m 
%	subsamp.m 
%	genrand.m 
%	channel.m 
%	calcerr.m

%===================================
%	Modified:
%	11/7/97	Started function, based on the simtxrx.m script
%		Currently not finished the help comments or the 
%		code.
%	22/7/97 Continued work on the function.
%	28/7/97	CDMA finished and been tested, also changed it so that it doesn't
%		print the summary out by default.
%	1/8/97	Changed the allocation of sequence numbers to be random, plus
%		added the sequence number input to the function, so that
%		repeats of simulations can use random Walsh codes.
%		Changed the Simulation so the data of all users is
%		check for errors, thus speeding up the code.
%	2/8/97	Removed the option to specify a Sequence Number, also fixed
%		a bug where the seqnum to used wasn't based on the procgain
%		but had a fixed ranged of 64.
%	7/8/97	Added the link type parameter so that both the forward link and
%		reverse link can be simulated.
%	9/8/97	3:40pm	cdma.m
%		MAJOR CHANGE. The simulations were giving BER twice what was expected
%		and the use of QPSK and phase modulation was not an appropriate
%		way to model the CDMA transmission, So I modifed all the functions
%		removing the variable word size, and changed it back to just
%		amplitude modulation. I also removed some of the parameters
%		which were never being removed, such as amplitude tolerance.

TotalWords =link(1);
procgain = link(2);
numusers = link(3);

SNR = physchan(1);
Comp = physchan(2);
Multi = multi;
OverSamp = misc(1);
linktype = misc(2);	
TimeTolerance = misc(3);

%=====================
% TRANSMITTER SECTION
%=====================
if TimeTolerance ~= 0,
	BaseSignal = zeros(1,(TotalWords/numusers)*procgain*OverSamp+TimeTolerance);
else
	BaseSignal = zeros(1,(TotalWords/numusers)*procgain*OverSamp);
end

%usednum = [];
seqnumlist = randperm(procgain);

Datatx = zeros(numusers,TotalWords/numusers);

for k = 1:numusers,
	Datatx(k,:) = genrand(1,1,TotalWords/numusers,'+-');
	
	%=================================================================
	%Randomly pick seq numbers (Walsh codes) for users (no duplicates)
	%=================================================================
	%seqnum = round(rand*procgain+0.5);		%Pick a possible sequence number
   
   %while ~isempty(find(usednum==seqnum)),		%keep picking seq numbers until 
							%it is not one already used
	%	seqnum = round(rand*procgain+0.5);	%Pick a possible sequence number
	%end
   %usednum = [usednum seqnum];
   seqnum = seqnumlist(k);
	
	TimeSignal = trancdma(Datatx(k,:),procgain,seqnum,linktype);	%find the waveform
							%for one users.

	TimeSignal = zerohold(TimeSignal,OverSamp);	%Oversample the signal
	if TimeTolerance ~= 0,
		seed = rand('seed');				%Save the random seed
		rand('seed', k);				%Pick a random time offset
		RandDelay = round(rand*TimeTolerance)+1;
		rand('seed',seed);				%restore the previous seed
		TimeSignal = [zeros(1,RandDelay), TimeSignal, zeros(1,TimeTolerance-RandDelay)];
	end
	BaseSignal = BaseSignal+TimeSignal;		%Combine the signals from all the users
end

%===============
% CHANNEL MODEL
%===============
BaseSignal = channel(BaseSignal, Comp, SNR, Multi);	%Apply the channel model to the signal

if TimeTolerance == 0,
	BaseSignal = subsamp(BaseSignal,OverSamp);		%Remove any oversampling
end
%==================
% RECEIVER SECTION
%==================
TotalErr = 0;
AmpErr = 0;
%Receive each users data separately then average the results (BER, AmpErr) over all users
for k = 1:numusers,
	if TimeTolerance ~= 0,
		seed = rand('seed');				%Save the random seed
		rand('seed',k);					%Pick a random time offset
		RandDelay = round(rand*TimeTolerance)+1;
		rand('seed',seed);				%restore the previous seed
		TimeSignal = BaseSignal(RandDelay:length(BaseSignal)+RandDelay-TimeTolerance);
		TimeSignal = subsamp(TimeSignal,OverSamp);		%Remove any oversampling
		[Datarx, subsignal] = reccdma(TimeSignal,procgain,seqnumlist(k),linktype);
	else
		[Datarx, subsignal] = reccdma(BaseSignal,procgain,seqnumlist(k),linktype);
	end
	err = calcerr(Datatx(k,:),Datarx,subsignal);
	TotalErr = TotalErr + err(3);		%Find the total number of data errors
	AmpErr = AmpErr + err(2);		%RMS Amplitude Error
end
BER = TotalErr/(round(TotalWords/numusers)*numusers);
AmpErr = AmpErr/numusers;
summary=[BER AmpErr TotalErr];

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91高清视频免费看| 亚洲特黄一级片| 日韩免费高清视频| 日韩视频一区二区在线观看| 8x福利精品第一导航| 91精品国产全国免费观看| 欧美日韩国产高清一区二区三区| 欧美亚洲一区二区在线| 在线视频观看一区| 在线不卡一区二区| 亚洲精品久久7777| 亚洲精品中文在线观看| 亚洲欧美日韩在线播放| 夜夜精品视频一区二区| 亚洲成人自拍一区| 免费高清视频精品| 国产精品一品视频| 99热这里都是精品| 在线免费观看日韩欧美| 欧美日韩情趣电影| 欧美精品一区视频| 国产精品久久久久三级| 亚洲一区在线播放| 久久精品国产一区二区三| 国产精品资源在线看| 99久久综合国产精品| 欧美性猛片aaaaaaa做受| 欧美日韩国产在线观看| 欧美电视剧在线看免费| 欧美经典三级视频一区二区三区| 日韩美女视频19| 亚洲www啪成人一区二区麻豆| 久久99热99| 91女厕偷拍女厕偷拍高清| 欧美丰满高潮xxxx喷水动漫| 久久久99精品免费观看| 依依成人综合视频| 欧美aaa在线| 成人avav在线| 6080亚洲精品一区二区| 久久影院电视剧免费观看| 亚洲蜜臀av乱码久久精品蜜桃| 婷婷开心激情综合| 福利电影一区二区三区| 欧美亚一区二区| 国产亚洲午夜高清国产拍精品| 亚洲女性喷水在线观看一区| 蜜臀av一区二区在线免费观看| 成人久久视频在线观看| 欧美日韩精品欧美日韩精品一| 国产视频一区在线观看| 亚洲第一精品在线| 国产成人鲁色资源国产91色综 | 成人网页在线观看| 欧美日韩国产综合视频在线观看| 久久精品亚洲麻豆av一区二区| 一区二区视频免费在线观看| 激情亚洲综合在线| 欧美在线观看视频一区二区 | 亚洲成人av一区二区三区| 国产一区二区三区在线看麻豆| 在线免费观看视频一区| 国产欧美1区2区3区| 日本美女一区二区| 一本一道波多野结衣一区二区| 精品成人a区在线观看| 亚洲国产视频a| 99久久99久久免费精品蜜臀| 欧美α欧美αv大片| 亚洲成人一区在线| 99精品欧美一区二区三区综合在线| 欧美本精品男人aⅴ天堂| 亚洲国产精品久久久久秋霞影院| 日本高清视频一区二区| 色94色欧美sute亚洲13| 久久综合网色—综合色88| 天堂成人国产精品一区| 欧美性欧美巨大黑白大战| 亚洲欧洲精品一区二区三区| 国产曰批免费观看久久久| 日韩丝袜情趣美女图片| 日韩高清不卡一区二区三区| 在线免费观看日本欧美| 91蝌蚪porny| 8v天堂国产在线一区二区| 亚洲人成亚洲人成在线观看图片| 国产精品资源站在线| 欧美大片在线观看| 蜜臀av性久久久久蜜臀av麻豆| 欧美偷拍一区二区| 亚洲一二三四区| 在线观看91视频| 亚洲免费在线播放| 色成年激情久久综合| 综合久久久久久| 99re这里都是精品| 亚洲日本在线a| 91一区二区三区在线观看| 国产精品国产三级国产专播品爱网| 国产一区二区三区综合| 久久久777精品电影网影网 | 福利91精品一区二区三区| 久久精品一区四区| 国产精品自在在线| 国产亚洲精品aa午夜观看| 国产精品18久久久久久久久久久久 | 91网站在线播放| 亚洲人成网站精品片在线观看| 99在线精品一区二区三区| 亚洲欧洲另类国产综合| 色香蕉成人二区免费| 亚洲小少妇裸体bbw| 欧美日韩免费一区二区三区 | 欧美日韩国产天堂| 日韩国产一区二| 精品国产一区二区精华| 国产福利精品导航| 国产精品久久久久久久蜜臀| 99视频精品免费视频| 亚洲综合图片区| 欧美精品粉嫩高潮一区二区| 日韩不卡手机在线v区| 精品成人私密视频| 风间由美一区二区av101 | 麻豆91免费看| 久久一区二区三区国产精品| 盗摄精品av一区二区三区| 亚洲视频一区在线| 91精品一区二区三区久久久久久| 久久国产精品免费| 国产精品欧美久久久久一区二区| 91社区在线播放| 视频一区二区中文字幕| 久久精品一区蜜桃臀影院| 色噜噜狠狠成人网p站| 日韩精品免费专区| 国产欧美一区二区精品久导航| 色一区在线观看| 看电影不卡的网站| 亚洲国产精品成人综合| 欧美午夜精品理论片a级按摩| 麻豆91精品91久久久的内涵| 国产精品不卡一区二区三区| 精品视频1区2区| 色美美综合视频| 久色婷婷小香蕉久久| 国产精品乱码久久久久久| 欧美日韩精品欧美日韩精品一| 激情久久久久久久久久久久久久久久| 国产精品美女久久久久久2018| 欧洲人成人精品| 韩国v欧美v日本v亚洲v| 亚洲最新视频在线观看| 久久只精品国产| 欧美伊人精品成人久久综合97| 国产精品自拍av| 五月天一区二区| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产无人区一区二区三区| 欧美午夜不卡视频| 国产电影一区二区三区| 天堂精品中文字幕在线| 中文字幕一区二区三区视频 | 一区二区三区欧美久久| 2024国产精品| 欧美精品久久久久久久多人混战 | 五月激情丁香一区二区三区| 国产精品美女久久久久av爽李琼| 日韩亚洲欧美成人一区| 91麻豆高清视频| 国产精品一区二区在线观看不卡| 视频一区二区欧美| 一区二区欧美国产| 国产欧美日韩三区| 精品日本一线二线三线不卡| 欧美日韩中文精品| 99久久精品国产精品久久| 国产在线播放一区| 石原莉奈在线亚洲三区| 一区二区三区日韩精品视频| 中日韩av电影| 久久久91精品国产一区二区精品| 日韩一区二区三区高清免费看看| 色哟哟国产精品| 99国内精品久久| 国产91色综合久久免费分享| 韩国成人精品a∨在线观看| 日韩精品一二区| 亚洲一二三专区| 洋洋成人永久网站入口| 日韩毛片精品高清免费| 国产精品水嫩水嫩| 国产欧美日韩亚州综合| 久久综合精品国产一区二区三区| 日韩亚洲电影在线| 欧美一区二区三区精品| 欧美猛男gaygay网站| 欧美性猛交xxxx黑人交| 欧美性猛交xxxxxxxx| 欧亚洲嫩模精品一区三区|