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

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

?? transmit.m

?? OFDM simulation, including channel, transmitter, receiver, and simulink
?? 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一区二区三区免费野_久草精品视频
成人av在线播放网址| 日韩午夜中文字幕| 91精品欧美久久久久久动漫| 亚洲精品在线免费观看视频| 中文字幕一区免费在线观看| 日韩成人一级片| 欧美日韩一级视频| 精品国产乱码91久久久久久网站| 亚洲麻豆国产自偷在线| 久国产精品韩国三级视频| 色综合久久精品| 久久久久久久久久久久久夜| 亚洲午夜在线电影| eeuss鲁片一区二区三区在线看| 欧美一级日韩不卡播放免费| 亚洲精品老司机| 波多野结衣视频一区| 久久精品一区四区| 免费成人在线影院| 欧美精品一级二级| 一区二区三区 在线观看视频 | 美脚の诱脚舐め脚责91| 色拍拍在线精品视频8848| 中文字幕国产一区| 国内偷窥港台综合视频在线播放| 91 com成人网| 亚洲与欧洲av电影| 91视频精品在这里| 国产精品久久国产精麻豆99网站| 精品一区二区在线免费观看| 日韩一区二区在线播放| 国产成人在线视频网站| 久久免费视频一区| 国产激情一区二区三区四区| 欧美xxxxx裸体时装秀| 看片网站欧美日韩| 欧美大胆一级视频| 国产精品自拍一区| 久久久不卡网国产精品一区| 国产一区二区三区不卡在线观看| 欧美成人a∨高清免费观看| 婷婷中文字幕一区三区| 欧美日本在线播放| 色综合天天在线| 婷婷六月综合网| bt欧美亚洲午夜电影天堂| 成人禁用看黄a在线| 精品国产亚洲在线| 久久99精品国产.久久久久久| 日韩久久精品一区| 久久99久久精品| 国产偷国产偷亚洲高清人白洁| 处破女av一区二区| 自拍偷拍亚洲综合| 欧美日韩一区高清| 麻豆视频观看网址久久| 久久女同性恋中文字幕| 欧美男男青年gay1069videost | 奇米四色…亚洲| 26uuu国产一区二区三区 | 亚洲国产精品久久久久秋霞影院| 欧美精选在线播放| 极品少妇xxxx精品少妇| 国产精品色呦呦| 欧美三级资源在线| 麻豆一区二区99久久久久| 国产精品网站在线观看| 91国在线观看| 九九视频精品免费| 成人免费一区二区三区在线观看| 欧美日韩日本视频| 国产在线观看一区二区| 亚洲乱码国产乱码精品精小说| 91麻豆精品国产91久久久更新时间| 久久精品国产久精国产| 国产精品乱人伦一区二区| 欧美精品粉嫩高潮一区二区| 日韩精品免费专区| 国产精品久久久久久久久快鸭| 欧美日韩久久久久久| 国产乱色国产精品免费视频| 亚洲综合色噜噜狠狠| 久久精品视频免费| 欧美日韩精品一区二区| 国产99久久久国产精品免费看| 亚洲一区二区三区三| 久久精品一区二区三区不卡| 中文字幕免费一区| 欧美色国产精品| 成人午夜电影小说| 久久99热国产| 天堂影院一区二区| 一区免费观看视频| 国产午夜亚洲精品午夜鲁丝片| 欧美午夜片在线观看| 丁香婷婷综合五月| 国产在线视视频有精品| 日韩精品欧美精品| 亚洲一区二区欧美激情| 一区在线播放视频| 国产精品色在线| 久久亚洲捆绑美女| 精品少妇一区二区三区视频免付费 | 久久中文字幕电影| 日韩一级二级三级精品视频| 欧美日韩在线直播| 一本大道久久a久久综合| 成人app网站| 国产69精品久久99不卡| 国内精品嫩模私拍在线| 日韩**一区毛片| 丝袜美腿一区二区三区| 亚洲第四色夜色| 无码av免费一区二区三区试看 | 国产成人av网站| 久久99热这里只有精品| 老鸭窝一区二区久久精品| 日本一不卡视频| 美女视频黄 久久| 美国毛片一区二区三区| 六月丁香综合在线视频| 久久不见久久见免费视频1| 毛片av中文字幕一区二区| 久久se精品一区精品二区| av一区二区不卡| 成人aa视频在线观看| 9久草视频在线视频精品| 成人高清视频在线观看| 99精品国产91久久久久久| 91麻豆国产香蕉久久精品| 色菇凉天天综合网| 欧美日韩另类一区| 欧美zozo另类异族| 国产亚洲美州欧州综合国| 欧美激情一区二区三区四区| 中文字幕在线不卡视频| 亚洲欧美日韩精品久久久久| 一级精品视频在线观看宜春院| 夜夜嗨av一区二区三区网页| 丝袜亚洲另类欧美综合| 国精产品一区一区三区mba视频| 国产在线精品视频| av一二三不卡影片| 欧美日本在线播放| 26uuu亚洲| 亚洲精品日韩综合观看成人91| 亚洲国产裸拍裸体视频在线观看乱了| 三级亚洲高清视频| 国产精品99久久久久久久女警 | 亚洲高清中文字幕| 精品午夜久久福利影院| 成人激情电影免费在线观看| 欧美吞精做爰啪啪高潮| 精品剧情在线观看| 亚洲视频中文字幕| 99精品黄色片免费大全| 欧美在线看片a免费观看| 欧美大片一区二区| 国产精品久久免费看| 日韩精品亚洲专区| 从欧美一区二区三区| 欧美视频在线播放| 久久免费美女视频| 亚洲成人中文在线| 国产91精品久久久久久久网曝门| 色猫猫国产区一区二在线视频| 日韩亚洲国产中文字幕欧美| 中文字幕中文字幕在线一区| 三级久久三级久久久| av电影在线观看完整版一区二区| 91精品国产欧美一区二区| 国产精品三级av在线播放| 日韩成人av影视| 色婷婷亚洲婷婷| 中文字幕国产精品一区二区| 男女性色大片免费观看一区二区 | 日本欧洲一区二区| 91香蕉视频在线| 国产蜜臀97一区二区三区| 日本中文在线一区| 日本二三区不卡| 亚洲欧洲日本在线| 国产成人精品1024| 精品久久人人做人人爽| 亚洲成av人综合在线观看| eeuss鲁一区二区三区| 久久影院视频免费| 久久精品久久精品| 欧美精品色综合| 亚洲一级二级三级在线免费观看| 99久久夜色精品国产网站| 亚洲国产乱码最新视频| 91免费精品国自产拍在线不卡| 欧美国产综合一区二区| 激情综合五月天| 欧美电视剧免费观看| 日韩av中文字幕一区二区三区 | 国产成人av影院| 久久久精品国产免大香伊| 久久99精品久久久|