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

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

?? transmit.m

?? 一個有關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一区二区三区免费野_久草精品视频
有码一区二区三区| 久久国产人妖系列| 中文字幕人成不卡一区| 久久久久久一二三区| 精品国产免费人成在线观看| 欧美一区二区高清| 欧美电影免费观看高清完整版在线观看| 欧美视频在线观看一区二区| 色先锋资源久久综合| 色婷婷综合在线| 在线免费不卡视频| 欧美伊人精品成人久久综合97| 91蜜桃视频在线| 色婷婷亚洲一区二区三区| 在线观看国产日韩| 欧美浪妇xxxx高跟鞋交| 日韩情涩欧美日韩视频| 欧美成人一区二区三区片免费 | 久久久久久久网| 久久综合久久鬼色| 国产精品99久| 5566中文字幕一区二区电影 | 欧美另类变人与禽xxxxx| 欧美精品久久天天躁| 91精品国产91久久久久久一区二区 | 欧洲中文字幕精品| 欧美日韩午夜精品| 日韩视频在线你懂得| 国产性色一区二区| 亚洲欧美成人一区二区三区| 亚洲综合久久久| 免费成人你懂的| 国产成人av电影在线| 色婷婷综合久久久久中文一区二区 | 99精品桃花视频在线观看| 日本精品裸体写真集在线观看| 欧美乱妇15p| 国产午夜精品久久| 一区二区三区.www| 久久精品二区亚洲w码| 成人精品视频网站| 欧美午夜在线观看| 久久亚洲综合av| 亚洲免费观看高清完整版在线| 日韩中文字幕区一区有砖一区| 国产在线精品国自产拍免费| 色综合一个色综合| 精品国产网站在线观看| 亚洲日穴在线视频| 久久国产精品第一页| a级高清视频欧美日韩| 56国语精品自产拍在线观看| 国产精品色噜噜| 日韩成人一级大片| 91色九色蝌蚪| 久久综合av免费| 亚洲午夜在线观看视频在线| 国产在线国偷精品产拍免费yy| 色狠狠一区二区三区香蕉| 久久综合久久综合九色| 午夜欧美视频在线观看| 成人黄色网址在线观看| 日韩欧美视频在线| 亚洲国产一区视频| 国产激情一区二区三区四区| 欧美久久一二区| 亚洲免费色视频| 国产福利一区二区三区视频| 欧美一区二区三区成人| 夜夜精品视频一区二区| 福利视频网站一区二区三区| 欧美一区二区三区电影| 亚洲综合在线第一页| 成人理论电影网| 久久综合视频网| 免费成人在线视频观看| 欧美日韩免费在线视频| 亚洲视频一区二区免费在线观看 | 99re热视频这里只精品| 久久综合丝袜日本网| 日本在线播放一区二区三区| 在线观看一区日韩| 久久久久久97三级| 欧美三级电影在线看| 国产精品日产欧美久久久久| 久久99国产精品尤物| 欧美日韩免费一区二区三区 | 天堂久久久久va久久久久| av一二三不卡影片| 久久众筹精品私拍模特| 久久国内精品视频| 日韩一区二区三区免费看 | 国产日韩精品视频一区| 老司机精品视频在线| 欧美军同video69gay| 亚洲午夜精品久久久久久久久| 一本到一区二区三区| 综合久久国产九一剧情麻豆| 白白色 亚洲乱淫| 国产精品系列在线| a在线欧美一区| 亚洲日本电影在线| 91丨porny丨首页| 亚洲欧美日韩精品久久久久| 99久久精品免费| 中文字幕欧美一| 91麻豆swag| 一区二区三区av电影 | 国产视频亚洲色图| 国产精品66部| 中国av一区二区三区| 不卡av电影在线播放| 中文字幕一区二区三区四区不卡| 成人v精品蜜桃久久一区| 国产精品电影院| 色综合天天综合色综合av| 亚洲精品欧美在线| 欧美日韩在线亚洲一区蜜芽| 日韩和欧美一区二区三区| 日韩午夜激情视频| 国产一区二区主播在线| 欧美国产欧美亚州国产日韩mv天天看完整 | 一区二区三区蜜桃网| 欧美日韩久久久| 捆绑调教一区二区三区| 久久蜜桃香蕉精品一区二区三区| 国产成人在线色| 亚洲女女做受ⅹxx高潮| 欧美日韩高清一区二区三区| 毛片av一区二区| 国产日韩欧美精品一区| 92国产精品观看| 婷婷开心久久网| 久久蜜桃av一区二区天堂| 99国产精品久久久| 同产精品九九九| 久久久久久免费| 色噜噜久久综合| 久久精品国产免费| 中文字幕色av一区二区三区| 欧美午夜精品一区二区三区 | 色综合久久综合网97色综合| 国产日产亚洲精品系列| 国产精品福利电影一区二区三区四区| 91丨porny丨首页| 亚洲成人激情av| 久久影视一区二区| 色国产综合视频| 久国产精品韩国三级视频| 亚洲欧美在线另类| 91精品蜜臀在线一区尤物| 国产91在线|亚洲| 亚洲一二三区在线观看| 久久久久国产精品人| 欧美在线一二三四区| 精品夜夜嗨av一区二区三区| 亚洲黄网站在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 色天使色偷偷av一区二区 | 欧美日韩在线综合| 国产成人鲁色资源国产91色综 | 日本伊人午夜精品| 国产精品久久久久一区二区三区| 欧美日韩久久久| av电影天堂一区二区在线 | 欧美在线免费观看视频| 国产精品自在在线| 性感美女久久精品| 国产精品大尺度| 精品久久人人做人人爱| 欧美亚洲综合网| 成人毛片在线观看| 九九热在线视频观看这里只有精品| 亚洲精品第1页| 国产欧美日韩综合| 日韩区在线观看| 欧美日韩在线播放一区| 不卡区在线中文字幕| 国产精品一区二区视频| 日韩高清电影一区| 亚洲一区二区黄色| 中文字幕一区免费在线观看| 久久久久久久久久久黄色| 91精品午夜视频| 欧美性猛交xxxxxxxx| 91社区在线播放| 成人免费福利片| 国产乱码精品一区二区三区忘忧草| 日韩成人精品视频| 亚洲成人自拍网| 玉足女爽爽91| 亚洲人成精品久久久久久| 国产欧美精品一区二区三区四区| 日韩欧美另类在线| 欧美日韩欧美一区二区| 欧美日韩中文字幕精品| 欧美自拍丝袜亚洲| 色呦呦国产精品| 色婷婷久久综合| 在线视频国产一区|