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

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

?? transmit.m

?? ofdm matlab implementation details
?? 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));

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
豆国产96在线|亚洲| 一区二区三区在线观看国产| 欧美性受xxxx黑人xyx| 在线免费av一区| 91精品福利在线一区二区三区 | 一区二区免费在线播放| 亚洲一区二区三区自拍| 蜜桃91丨九色丨蝌蚪91桃色| 成人在线一区二区三区| 欧美日韩精品久久久| 久久理论电影网| 亚洲va韩国va欧美va| 国产精品99久久久久久久vr | 精品人伦一区二区色婷婷| 国产精品久久看| 蜜桃久久精品一区二区| 色中色一区二区| 国产色综合一区| 黄色日韩网站视频| 欧美一区二区女人| 亚洲夂夂婷婷色拍ww47 | 亚洲品质自拍视频网站| 国产在线精品一区二区不卡了 | 亚洲电影第三页| 国产精品一区免费在线观看| 日韩一区二区在线看| 亚洲一区免费视频| 欧美午夜一区二区三区 | 欧美国产精品中文字幕| 国产一区欧美二区| 久久久夜色精品亚洲| 国产麻豆成人传媒免费观看| 日韩欧美一级精品久久| 国模套图日韩精品一区二区 | 亚洲精品乱码久久久久久黑人 | 成人视屏免费看| 亚洲欧洲av一区二区三区久久| 波多野结衣在线一区| 亚洲国产精品精华液2区45| 一本到不卡免费一区二区| 伊人开心综合网| 日韩一级视频免费观看在线| 国产精品99久| 午夜精品久久久久| 91精品国产色综合久久| 久久不见久久见免费视频1| 欧美精品亚洲一区二区在线播放| 成人免费一区二区三区视频| 成人免费高清视频| 夜夜操天天操亚洲| 欧美高清一级片在线| 日韩高清电影一区| 精品国产乱码久久久久久图片| 国产毛片精品国产一区二区三区| 国产欧美视频一区二区三区| 一本久久a久久免费精品不卡| 亚洲一区二区五区| 久久综合九色综合97婷婷女人 | 国产精品久久久久久久久久免费看| 99热这里都是精品| 亚洲一区二区三区激情| 国产精品毛片久久久久久久| 在线播放中文一区| 成人精品鲁一区一区二区| 视频一区国产视频| 亚洲女人小视频在线观看| 欧美一级搡bbbb搡bbbb| 色哟哟国产精品| 国产黄色91视频| 日韩电影在线看| 午夜国产不卡在线观看视频| 亚洲免费观看高清完整版在线| 精品99一区二区| 精品国产一区二区三区忘忧草| 91色.com| 在线一区二区三区四区| 99这里都是精品| 91在线播放网址| 日本久久一区二区三区| 丰满亚洲少妇av| 免费成人av在线| 国产精品自拍网站| 精品亚洲国产成人av制服丝袜 | 九九**精品视频免费播放| 亚洲成a人在线观看| 亚洲激情六月丁香| 亚洲综合偷拍欧美一区色| 亚洲精品美国一| 日韩和欧美一区二区| 日本网站在线观看一区二区三区 | 亚洲一区二区三区视频在线播放| 一区二区三区欧美日| 亚洲一本大道在线| 久久国产精品99久久久久久老狼| 成人黄色在线视频| 欧美大黄免费观看| 亚洲综合一区二区三区| 国产高清精品网站| 欧美一区二区三区日韩| 国产精品福利影院| 久久99精品久久久久| 在线影院国内精品| 综合自拍亚洲综合图不卡区| 国产精品一区二区三区99| 制服丝袜中文字幕一区| 亚洲精品乱码久久久久| www.成人网.com| 国产精品第13页| 成人精品视频一区| 欧美韩国日本不卡| 99re在线视频这里只有精品| 国产精品视频免费| 一本色道久久综合亚洲精品按摩| 中文字幕亚洲在| 91污在线观看| 亚洲永久精品国产| 91精品国产综合久久精品性色| 日本亚洲欧美天堂免费| 久久毛片高清国产| 日本韩国一区二区| 日本sm残虐另类| 国产三级一区二区| 欧美伦理影视网| 国产伦精一区二区三区| 一区视频在线播放| 精品三级在线观看| 91久久精品一区二区二区| 免费在线观看日韩欧美| 最新高清无码专区| 久久奇米777| 欧美电影在线免费观看| 风间由美中文字幕在线看视频国产欧美| 国产精品九色蝌蚪自拍| 欧美日韩不卡视频| 成人高清免费观看| 国产91精品露脸国语对白| 午夜国产精品一区| 亚洲一区二区精品视频| 亚洲欧美另类久久久精品2019| 精品动漫一区二区三区在线观看| 91国内精品野花午夜精品 | 亚洲成人在线免费| 亚洲欧洲综合另类| 亚洲色图在线视频| 亚洲人成网站在线| 亚洲伦理在线精品| 一区二区三区免费网站| 亚洲天堂a在线| 一区二区在线观看视频| 国产精品麻豆久久久| 中文字幕亚洲一区二区va在线| 欧美一级在线观看| 亚洲精品一区二区三区在线观看 | 欧美一区二区日韩一区二区| 欧美精品精品一区| 精品欧美一区二区在线观看| 亚洲少妇屁股交4| 国产jizzjizz一区二区| 欧美午夜在线一二页| 亚洲国产精品精华液网站| 最新国产精品久久精品| 国产精品福利一区| 亚洲一区二区在线观看视频| 亚洲成人免费影院| 国产剧情一区二区| 一本到一区二区三区| 欧美大黄免费观看| 尤物视频一区二区| 国产精品自产自拍| 在线观看网站黄不卡| 久久只精品国产| 亚洲成va人在线观看| 99久久精品费精品国产一区二区| 欧美日韩和欧美的一区二区| 国产情人综合久久777777| 调教+趴+乳夹+国产+精品| 成人激情小说乱人伦| 精品乱人伦小说| 日韩在线一区二区三区| 91女厕偷拍女厕偷拍高清| 中日韩av电影| 99热精品一区二区| 综合久久久久综合| 色综合一个色综合亚洲| 国产精品久久久久久久久久免费看 | 视频一区欧美精品| 欧美日本在线一区| 日本怡春院一区二区| 欧美一区二区在线播放| 久久99精品久久久久久动态图| 欧美群妇大交群中文字幕| 婷婷一区二区三区| 欧美va在线播放| 国产精品亚洲第一区在线暖暖韩国| 久久久青草青青国产亚洲免观| 久久国产精品99精品国产| 国产精品不卡在线| 欧美日韩黄色一区二区| 精品亚洲aⅴ乱码一区二区三区| 中文字幕免费一区|