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

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

?? transmit.m

?? 有關ofdm的MATLAB仿真程序 對需要的朋友很有幫助
?? 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一区二区三区免费野_久草精品视频
国产一区二区调教| 国产老妇另类xxxxx| 97国产一区二区| 国产欧美日韩三级| 成人的网站免费观看| 国产精品久久久久久久午夜片| 国产精品一级在线| 亚洲精品高清在线| 国产欧美一区二区精品婷婷| 麻豆视频一区二区| 中文字幕中文字幕一区| 色8久久人人97超碰香蕉987| 五月婷婷欧美视频| 久久影音资源网| 一级中文字幕一区二区| 91麻豆福利精品推荐| 舔着乳尖日韩一区| 日本一区二区视频在线观看| 色综合天天综合给合国产| 日韩av在线播放中文字幕| 精品久久免费看| 国产激情精品久久久第一区二区| 亚洲国产一区视频| 国产精品国产三级国产普通话三级 | 久久综合国产精品| 欧美日韩亚洲综合一区 | 丝袜美腿高跟呻吟高潮一区| 中文字幕国产一区| 久久久国际精品| 精品国产成人系列| 日韩欧美一级在线播放| 884aa四虎影成人精品一区| 亚洲精品中文在线影院| 国产精品水嫩水嫩| 国产日韩三级在线| 日韩欧美自拍偷拍| 国产高清亚洲一区| 日韩福利电影在线观看| 91网站最新地址| 亚洲乱码国产乱码精品精可以看 | 91色综合久久久久婷婷| 色综合久久六月婷婷中文字幕| 亚洲精品久久久蜜桃| 国产高清成人在线| 99久久99久久精品国产片果冻| 欧美日韩小视频| 亚洲精品写真福利| 91网站最新地址| 亚洲欧洲在线观看av| eeuss鲁片一区二区三区| 久久久电影一区二区三区| 免费在线观看日韩欧美| 色伊人久久综合中文字幕| 一区二区三区电影在线播| 欧美日韩国产成人在线91| 国产精品国模大尺度视频| 亚洲一区二区三区四区五区黄 | 欧美性生活大片视频| 国产综合色视频| 成人免费福利片| 精品成人一区二区| 亚洲黄色小视频| 精品一区二区三区日韩| 99精品一区二区| 国产精品婷婷午夜在线观看| 亚洲欧美日韩国产成人精品影院 | 综合色天天鬼久久鬼色| 不卡一区二区中文字幕| 精品国产欧美一区二区| 亚洲三级免费电影| 成人性色生活片| 色偷偷久久一区二区三区| 成人精品鲁一区一区二区| 69堂成人精品免费视频| 天天免费综合色| 欧美综合在线视频| 亚洲欧美经典视频| 欧美一区二区在线播放| 亚洲视频一区在线观看| 天堂av在线一区| 日韩精品一级二级| 91极品美女在线| 亚洲精品在线三区| 欧美mv日韩mv国产| 日本一区二区成人在线| 国产精品亚洲成人| 国产人成亚洲第一网站在线播放 | 一区二区三区美女| 日日夜夜免费精品| 欧美伦理影视网| 日本不卡一区二区| 91久久线看在观草草青青| 亚洲最大的成人av| 亚洲曰韩产成在线| 日韩限制级电影在线观看| av电影天堂一区二区在线观看| 精品影视av免费| 免费观看在线色综合| 视频在线观看一区| 午夜亚洲国产au精品一区二区| 亚洲精品你懂的| 亚洲三级电影网站| 国产日韩欧美综合一区| 宅男在线国产精品| 在线观看日韩一区| 成人免费电影视频| 国产精品一卡二卡| 看电影不卡的网站| 久久99国产精品久久99果冻传媒| 亚洲午夜久久久久久久久电影网 | 久久久777精品电影网影网 | 麻豆精品一区二区综合av| 欧美国产乱子伦| 日韩欧美一二三四区| 欧美日韩日日骚| jizzjizzjizz欧美| 精品一区二区三区视频| 亚洲精品伦理在线| 国产精品久久久久久久岛一牛影视| 日韩午夜中文字幕| 欧美zozo另类异族| 欧美大片在线观看| 日韩一二三区不卡| 日韩欧美你懂的| 久久综合色综合88| 中文字幕成人av| 亚洲欧洲日本在线| 中文字幕乱码久久午夜不卡| 久久夜色精品国产噜噜av| 日韩精品最新网址| 久久精品网站免费观看| 久久久亚洲精品一区二区三区| 国产欧美综合在线观看第十页| 久久嫩草精品久久久久| 中文字幕一区二区三区在线观看| 国产精品久久久久久福利一牛影视 | 国产亚洲va综合人人澡精品| 国产清纯白嫩初高生在线观看91| 国产欧美精品区一区二区三区| 中文字幕一区二区三区不卡在线| 一区二区三区视频在线看| 天天爽夜夜爽夜夜爽精品视频| 欧美aa在线视频| 高清视频一区二区| 91丨九色丨黑人外教| 欧美日韩精品一区二区三区蜜桃| 欧美va天堂va视频va在线| 中文字幕中文在线不卡住| 天天综合天天综合色| 91日韩精品一区| 国产精品卡一卡二卡三| 久久国产日韩欧美精品| 欧美在线观看视频一区二区三区| 久久综合狠狠综合久久综合88| 亚洲成人免费视频| 不卡在线观看av| 国产欧美一区二区精品秋霞影院| 最新中文字幕一区二区三区| 久久国产精品一区二区| 欧美美女bb生活片| 亚洲国产日韩精品| 欧洲一区在线电影| 亚洲妇熟xx妇色黄| 精品视频在线免费观看| 亚洲国产精品自拍| 欧美丝袜自拍制服另类| 一区二区三区日韩在线观看| 91麻豆精品视频| 一级日本不卡的影视| 91国产成人在线| 亚洲一区二区黄色| 欧美一区二区三区日韩视频| 日本不卡123| 精品久久久久久综合日本欧美| 六月丁香综合在线视频| 337p日本欧洲亚洲大胆精品| 在线观看日韩电影| 成人高清av在线| 成人福利电影精品一区二区在线观看| 石原莉奈一区二区三区在线观看| 亚洲精品伦理在线| 亚洲美女在线国产| 亚洲免费观看在线观看| 亚洲美腿欧美偷拍| 亚洲色图在线看| 亚洲国产日韩a在线播放性色| 亚洲日本乱码在线观看| 亚洲色图欧洲色图| 一区二区三区在线视频免费| 中文字幕精品在线不卡| 国产日韩精品一区二区浪潮av| 日韩精品中文字幕一区| 日韩一区二区免费视频| 3d动漫精品啪啪| 日韩精品中文字幕在线不卡尤物 | 日本韩国视频一区二区| 亚洲bt欧美bt精品777| 国产精品丝袜一区| 欧美激情综合五月色丁香| 26uuuu精品一区二区|