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

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

?? transmit.m

?? 基于Matlab 5.3開發的ofdm仿真程序
?? M
字號:
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));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91.com视频| 综合自拍亚洲综合图不卡区| 欧美激情中文字幕一区二区| 亚洲国产精品尤物yw在线观看| 激情小说亚洲一区| 欧美图区在线视频| 国产精品久久久久久久久免费丝袜 | 亚洲第一福利视频在线| 国内精品免费**视频| 欧美另类z0zxhd电影| 中文文精品字幕一区二区| 日韩国产精品久久久久久亚洲| jvid福利写真一区二区三区| 亚洲精品一区二区三区99| 亚洲午夜av在线| 日本精品裸体写真集在线观看| 中文字幕巨乱亚洲| 韩国三级中文字幕hd久久精品| 欧美日韩精品一区视频| 一区二区理论电影在线观看| 国产suv精品一区二区三区| 日韩欧美成人一区| 日欧美一区二区| 欧美日韩国产免费| 亚洲综合男人的天堂| 成人ar影院免费观看视频| 久久综合九色综合97婷婷女人| 美女视频网站黄色亚洲| 欧美一区二区视频在线观看| 石原莉奈在线亚洲二区| 欧美精品乱人伦久久久久久| 亚洲成年人影院| 欧美日本一区二区三区| 亚洲成人av免费| 欧美日本精品一区二区三区| 亚洲sss视频在线视频| 欧美日韩免费视频| 日韩精品一区第一页| 91精品福利在线一区二区三区| 五月天激情综合网| 在线播放亚洲一区| 狠狠狠色丁香婷婷综合久久五月| 精品欧美乱码久久久久久| 久久精品国产在热久久| 26uuu亚洲| 成人激情av网| 亚洲综合激情另类小说区| 69堂国产成人免费视频| 国模无码大尺度一区二区三区| 国产欧美日韩在线| 99久久99久久精品免费观看| 一区二区成人在线观看| 91精品国产综合久久精品app | 成人国产精品视频| 国产精品国产自产拍高清av王其| 91美女福利视频| 天天亚洲美女在线视频| 26uuu另类欧美亚洲曰本| 粉嫩13p一区二区三区| 一区二区三区久久| 日韩欧美国产电影| 99久久综合狠狠综合久久| 亚洲va在线va天堂| 久久精品一二三| 色呦呦日韩精品| 另类欧美日韩国产在线| 亚洲欧洲www| 日韩免费高清视频| 99久久国产综合精品麻豆| 日韩专区在线视频| 国产精品美女久久久久aⅴ| 欧美性大战久久久久久久蜜臀| 美女爽到高潮91| 亚洲精品国产高清久久伦理二区| 精品乱人伦一区二区三区| aa级大片欧美| 国模一区二区三区白浆| 亚洲大片免费看| 国产精品传媒视频| 欧美成人一区二区三区在线观看| 91毛片在线观看| 国产成人精品免费网站| 偷拍日韩校园综合在线| **网站欧美大片在线观看| 精品国内二区三区| 欧美精品乱码久久久久久| 波多野结衣一区二区三区 | 欧美体内she精高潮| 国产精选一区二区三区| 亚洲成人免费在线| 亚洲六月丁香色婷婷综合久久| 久久综合九色综合欧美98| 欧美精品欧美精品系列| 在线看日韩精品电影| 成人动漫视频在线| 国产乱子伦视频一区二区三区| 日韩二区在线观看| 亚洲国产成人高清精品| 亚洲三级视频在线观看| 国产精品入口麻豆九色| 国产亚洲综合性久久久影院| 日韩欧美卡一卡二| 欧美日韩综合在线| 欧美在线视频不卡| 日本福利一区二区| 色欧美88888久久久久久影院| 国产v日产∨综合v精品视频| 国产精品88888| 国产一区二区成人久久免费影院| 久久福利视频一区二区| 日本sm残虐另类| 免费观看日韩电影| 蜜臀国产一区二区三区在线播放| 视频在线观看国产精品| 亚洲电影第三页| 五月天丁香久久| 日韩电影免费在线看| 日韩高清一区二区| 蜜臀av亚洲一区中文字幕| 蜜臀精品一区二区三区在线观看 | 一区二区三区久久| 五月天亚洲婷婷| 午夜电影网一区| 美女一区二区三区在线观看| 美女尤物国产一区| 国产一区二区不卡老阿姨| 国产精品系列在线观看| 99这里都是精品| 日本道色综合久久| 91精品国产色综合久久不卡蜜臀| 日韩情涩欧美日韩视频| 久久久久久久一区| 亚洲欧美国产高清| 爽好久久久欧美精品| 国产一区二区影院| 99精品久久久久久| 91麻豆精品国产91久久久使用方法| 日韩欧美国产一区二区在线播放 | 亚洲国产va精品久久久不卡综合| 日韩精品欧美精品| 国产精品自拍三区| 色综合天天性综合| 日韩欧美一区在线| 欧美激情一区二区三区| 亚洲综合网站在线观看| 久久精品国产网站| 成人国产免费视频| 91 com成人网| 中文字幕第一区第二区| 亚洲福利视频一区二区| 国产在线播放一区三区四| 日本高清成人免费播放| 精品少妇一区二区三区在线播放| 成人欧美一区二区三区1314| 日本怡春院一区二区| 成人午夜视频免费看| 欧美精品自拍偷拍动漫精品| 国产精品三级av| 蜜臀av一级做a爰片久久| 一本色道久久综合狠狠躁的推荐| 欧美一区二区三区喷汁尤物| 中文字幕视频一区| 久久不见久久见中文字幕免费| 色94色欧美sute亚洲线路一ni | 欧美老肥妇做.爰bbww| 国产欧美一区二区三区在线老狼| 亚洲制服丝袜在线| 国产很黄免费观看久久| 6080午夜不卡| 玉足女爽爽91| 高清成人在线观看| 日韩亚洲欧美在线观看| 亚洲在线一区二区三区| 成人免费看黄yyy456| 欧美成人三级在线| 亚洲国产中文字幕| 日本伦理一区二区| 国产精品乱码一区二三区小蝌蚪| 精品一区二区在线看| 欧美日本在线播放| 亚洲美女在线国产| 成a人片国产精品| 国产日韩欧美高清在线| 美日韩一区二区三区| 欧美日韩成人综合| 亚洲国产一区二区视频| 一本大道av伊人久久综合| 亚洲国产高清在线| 国产1区2区3区精品美女| 日韩精品在线一区| 看片的网站亚洲| 欧美一级理论性理论a| 亚洲成人激情自拍| 欧美色视频在线| 亚洲一区二区三区视频在线播放| 一本一道波多野结衣一区二区| 亚洲欧洲av在线| 色婷婷综合久久久中文一区二区| 亚洲欧洲制服丝袜| 色婷婷综合久久久久中文|