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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? transmit.m

?? ofdm系統(tǒng)MATLAB仿真源代碼。 ofdm系統(tǒng)MATLAB仿真源代碼。
?? M
字號(hào):
function BaseSignal = transmit(Datatx,ifftsize,carriers,...
		      wordsize,guardtype,guardtime,windowtype,DataAvg)
%TRANSMIT Generates a COFDM waveform from an input data.
%	  function BaseSignal = transmit(DataIn,ifftsize,carriers,...
%		    wordsize,guardtype,guardtime,windowtype,DataAvg)
%
%	  This function generates a COFDM time waveform based on the input parameters
%	  and the data given. The data is transmformed into a single frame COFDM signal. 
%	  This for the simulation of a COFDM phone system.
%	  INPUTS:
%	  ========
%	  Datatx     : Data to transmit in the wordsize given. eg. for wordsize = 2
%		       Data is from 0-3, for wordsize = 8, data is from 0-255
%		       The data should be a single row vector. See convbase.m to
%		       convert from 8bit data to the required wordsize.
%		       e.g. datatx = convbase(datain, 8, wordsize);
%	  ifftsize   : Size of ifft to use for generating the waveform
%	  carriers   : Which carriers to use for the transmission
%	  wordsize   : Number of bits to transmit on each carrier eg. 2 => QPSK
%		       1 => BPSK, 4 => 16PSK, 8 => 256PSK.
%		       Must be one of: 1,2,4 or 8
%	  guardtype  : What type of guard period to use
%		       Options:
%		       0 = No Guard period
%		       1 = zero level guard period
%		       2 = cyclic extension of end of symbols
%		       3 = same as 2 but with the first half of the guard period = zero
%	  guardtime  : Number of sample to use for the total guard time
%	  windowtype : Type of window to apply to the time waveform of the symbol
%		       Options: 
%		       0 = No windowing
%		       1 = Hamming window
%	  DataAvg    : Data Averaging. Number of repeats to send of each data word, so
%		       that the repeats can be combined at the receiver to reduce the 
%		       phase error, and thus to BER. DataAvg = 1 (No duplication)
%			
%	  OUTPUTS:
%	  ========
%	  BaseSignal : This is the output time signal for the COFDM waveform. The format
%		       of the output is a row vector.
%	  Datatx     : Data transmitted. This is the input data (DataIn) converted to 
%		       the number base used for transmission, based on wordsize.
%	  
%	  Copyright (c) Eric Lawrey 1997
%
%	  See:	RECEIVE, RDFILE.

%===============================
%	External Functions Used :
%	None

%===============================
%	Modifications:
%	8/6/97	Redo of the previous simulation script. (based on distort.m)
%	15/6/97	Continuing work on this function, currently not finished
%	16/6/97 Continued work on function, it is now finished and works, but not all 
%		the features have been tested.
%		I have tested the windowing and the zeroed guard period. The code has also
%		been optimized a bit and runs ~10 times faster then it used to, plus
%		it can handle much bigger files (tested upto 87kbytes, wordsize=4), in 35sec
%		It appears to work as a function.
%		The function needs to be changed so that it does not read the file directly
%		but instead get the data as input.
%	17/6/97	Modified the function so that it does read the input file from within 
%		the transmit function. This is so that the file can be read else where
%		then split up into smaller frames, then processed by transmit.
%		Fixed up some logical errors in the program, and removed the output phase
%		variable as it can be easily calculated from the data being transmitted.
%	12/8/97	Changed the input requirements for Datatx. It is now DataIn which is a 
%		serial vector of byte data. The base conversion, reshaping of the data
%		into symbols, and padding of the input data is done by transmit.m. I also
%		data averaging that send duplicates of the data words. The duplicates are
%		sent as the very next data word. (No the best spreading, but easy to do).

%====================
% Initialization
%====================

%rand('seed',3567);
NumCarr = length(carriers);	%find the number of carriers


%=====================
% Apply Data Averaging
%=====================
%Duplicate data to be transmitted, duplicate each dataword having the next carrier
%also transmitting the same data word. This will not give the best diversity
%performance but is the easiest to implement.
DataOut = zerohold(Datatx,DataAvg);

%=============
% Pad the Data
%=============
%Format the input serial data stream into symbols
%Reshape the data to fit the number of carriers
numsymb = ceil(length(DataOut)/NumCarr);

%If the data length is not a multiple of the number of carrier the pad the data
%with zeros
if length(DataOut)/NumCarr ~= numsymb,
	DataPad = zeros(1,numsymb*NumCarr);
	DataPad(1:length(DataOut)) = DataOut;
	DataOut = DataPad;
end

clear DataPad;

%==============================
% Reshape the data into symbols
%==============================
DataOut = reshape(DataOut,NumCarr,numsymb)';	%Reshape the data into symbols

numsymb = size(DataOut,1)+1;	%find the total number of symbols 
				%including the phase reference symbol
%========================================
% Convert to DQPSK & add phase reference
%========================================
PhaseRef = round(rand(1,NumCarr)*(2^wordsize)+0.5);	%generate random phase ref.
DPSKdata = zeros(size(DataOut,1)+1,size(DataOut,2));
DPSKdata(1,:) = PhaseRef;
for k = 1:numsymb-1
	DPSKdata(k+1,:)=rem((DataOut(k,:) + DPSKdata(k,:)-1),(2^wordsize))+1;
end
%clear DataOut;

%=====================================
%Find the required spectrums
%=====================================
[X,Y] = pol2cart(DPSKdata*(2*pi/(2^wordsize)),ones(size(DPSKdata)));
CarrCmplx = X+i*Y;

NegCarriers = ifftsize-carriers+2;	%find the bins for the negative frequency carriers
TxSpectrums = zeros(numsymb,ifftsize);

for k = 1:numsymb
	%Place the carriers used into the full spectrum
	TxSpectrums(k,carriers) = CarrCmplx(k,:);
	TxSpectrums(k,NegCarriers) = conj(CarrCmplx(k,:));
end
clear NegCarriers;
%==================================
%Find the time waveform using IFFT
%==================================
BaseSignal = real(ifft(TxSpectrums'));

clear TxSpectrums;	%Save Memory

%=================================
%Window the signal
%=================================
if windowtype==1
	window = hamming(ifftsize);		%make window
	window2 = zeros(ifftsize,numsymb);
	for k = 1:numsymb-1
		window2(:,k) = window;
	end
	
	BaseSignal = window2.*BaseSignal;	%window the waveform
	clear window2;				%save memory	
	clear window;
end

%=================================
%Add a Guard Period
%=================================
if guardtype~=0
	if guardtype == 1 			%if guard period is just a zero transmission
		BaseSignal=[zeros(guardtime,numsymb);BaseSignal];
	elseif guardtype == 2
		EndSignal = size(BaseSignal,1);	%Find the number of columns in the BaseSignal
		BaseSignal=[BaseSignal((EndSignal-guardtime+1):EndSignal,:); BaseSignal];
	elseif guardtype == 3
		EndSignal = size(BaseSignal,1);	%Find the number of columns in the BaseSignal
		BaseSignal=[zeros(guardtime/2,numsymb); ...
			BaseSignal((EndSignal-guardtime/2+1):EndSignal,:); BaseSignal];
	end	
end

BaseSignal = reshape(BaseSignal,1,size(BaseSignal,1)*size(BaseSignal,2));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美电影一区二区| 日韩精品欧美精品| 香港成人在线视频| 国产盗摄一区二区三区| 欧美体内she精高潮| 国产亚洲福利社区一区| 日韩av电影免费观看高清完整版在线观看| 国产成都精品91一区二区三| 99re热视频这里只精品| 精品99一区二区| 日本不卡高清视频| 日本精品视频一区二区| 中文字幕精品三区| 久久爱另类一区二区小说| 欧美丝袜丝交足nylons图片| 日本一区二区三区四区在线视频| 亚洲成av人片在线观看| 色综合久久六月婷婷中文字幕| 精品国产青草久久久久福利| 日韩福利电影在线| 欧美探花视频资源| 亚洲国产婷婷综合在线精品| 粉嫩绯色av一区二区在线观看| 日韩欧美成人激情| 免费在线观看视频一区| 91精品免费在线| 午夜视频在线观看一区二区| 欧美在线一区二区| 又紧又大又爽精品一区二区| 91免费视频网址| 亚洲欧美日韩国产另类专区| 成人av第一页| 中文字幕在线免费不卡| 成人听书哪个软件好| 国产精品女主播av| 99久久综合99久久综合网站| 国产日韩精品一区| 粉嫩欧美一区二区三区高清影视| 国产欧美日本一区视频| 成人精品免费视频| 亚洲天堂av老司机| 欧美色国产精品| 丝袜诱惑制服诱惑色一区在线观看 | 国产91精品一区二区麻豆亚洲| 欧美精品一区二区三区蜜臀| 国内不卡的二区三区中文字幕 | 国v精品久久久网| 国产精品女主播在线观看| 欧美肥妇bbw| 免费av网站大全久久| 精品日产卡一卡二卡麻豆| 国产一区视频网站| 国产精品私人自拍| 欧美亚洲另类激情小说| 男女性色大片免费观看一区二区 | 国产成人精品免费在线| 国产精品久久夜| 欧美色图在线观看| 免费观看在线综合| 中文字幕不卡在线播放| 色狠狠一区二区| 极品少妇xxxx精品少妇| 国产精品丝袜91| 欧美日韩精品三区| 国产精品一二三区| 亚洲欧美日韩国产成人精品影院| 欧美理论片在线| 国产寡妇亲子伦一区二区| 尤物视频一区二区| 精品久久五月天| 欧洲一区在线电影| 国产福利电影一区二区三区| 一区二区激情小说| 久久久久久久久97黄色工厂| 日本高清无吗v一区| 极品少妇xxxx精品少妇| 一个色综合av| 久久品道一品道久久精品| 欧美性一二三区| 国产成人丝袜美腿| 日产欧产美韩系列久久99| 国产精品成人一区二区三区夜夜夜| 欧美日韩视频在线一区二区| 国产成人免费在线视频| 偷窥国产亚洲免费视频| 国产精品福利av| 精品久久五月天| 欧美日韩久久久一区| eeuss鲁片一区二区三区在线看| 久久精品国内一区二区三区| 一区二区三区在线观看欧美| 久久九九99视频| 日韩一区二区三区免费观看| 在线免费一区三区| 成人三级在线视频| 国产精品资源网| 激情文学综合网| 奇米影视一区二区三区| 亚洲午夜视频在线| 玉足女爽爽91| 亚洲免费av网站| 国产精品久久久久永久免费观看| 精品国产乱码久久| 欧美一区欧美二区| 欧美日韩一区高清| 欧美性大战久久久| 在线视频中文字幕一区二区| 99国产精品一区| 不卡一区在线观看| voyeur盗摄精品| 成人性生交大合| 成人亚洲精品久久久久软件| av在线不卡观看免费观看| 国产在线播精品第三| 91麻豆福利精品推荐| 丰满岳乱妇一区二区三区| 粉嫩久久99精品久久久久久夜| 国产在线视频一区二区| 亚洲综合久久久久| 国产免费观看久久| 国产精品久久久一本精品| 欧美激情一区二区三区全黄| 国产欧美一区二区精品秋霞影院| www精品美女久久久tv| 精品国产乱码久久久久久图片| 精品粉嫩超白一线天av| 国产亚洲1区2区3区| 欧美国产丝袜视频| 亚洲精品视频在线看| 一区二区三区免费在线观看| 亚洲午夜电影在线| 日韩不卡一区二区| 国产麻豆精品视频| 不卡视频一二三| 欧美性受xxxx| 欧美xxxxx裸体时装秀| 国产欧美精品日韩区二区麻豆天美| 亚洲国产精品高清| 一区二区三区欧美在线观看| 午夜视频久久久久久| 精品一区二区免费| 本田岬高潮一区二区三区| 欧美中文一区二区三区| 欧美一卡二卡三卡四卡| 国产夜色精品一区二区av| 亚洲欧美日韩系列| 麻豆国产精品视频| av激情综合网| 666欧美在线视频| 国产精品丝袜久久久久久app| 亚洲精品第1页| 韩国女主播一区二区三区| 成人av在线影院| 日韩一卡二卡三卡四卡| 中文字幕一区二区三| 人禽交欧美网站| 高清beeg欧美| 欧美一级精品在线| 亚洲天堂中文字幕| 国产资源精品在线观看| 在线观看成人免费视频| 国产日韩综合av| 日韩av一级电影| 91丨porny丨在线| xvideos.蜜桃一区二区| 夜夜精品浪潮av一区二区三区| 国模无码大尺度一区二区三区| 色哟哟一区二区在线观看 | 91麻豆6部合集magnet| 日韩欧美久久一区| 亚洲一二三专区| 成人av在线播放网址| 欧美一级欧美一级在线播放| 中文字幕在线不卡| 国产米奇在线777精品观看| 精品久久久久久久久久久久久久久| 亚洲视频一区在线| 国产一区二区视频在线播放| 欧美性猛片aaaaaaa做受| 国产精品久久毛片a| 国产综合一区二区| 日韩小视频在线观看专区| 亚洲图片有声小说| 91丝袜美腿高跟国产极品老师| 国产日韩精品一区二区三区| 麻豆成人在线观看| 欧美一区二区成人6969| 午夜视频一区在线观看| 在线视频国产一区| 亚洲精品国产品国语在线app| 成人中文字幕电影| 国产午夜亚洲精品羞羞网站| 老司机一区二区| 日韩视频一区在线观看| 日韩av电影免费观看高清完整版| 欧美三级电影精品| 午夜精品福利视频网站| 欧美日韩亚洲丝袜制服| 亚洲成人在线免费| 欧美精品在线视频|