亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产亚洲一区字幕| 91精选在线观看| 国产麻豆成人传媒免费观看| 午夜欧美电影在线观看| 亚洲一区二区三区自拍| 一区二区三区免费网站| 一区二区三区中文字幕电影| 尤物视频一区二区| 亚洲综合在线五月| 午夜精品aaa| 美女在线一区二区| 韩国视频一区二区| 成人av免费在线观看| 色综合激情五月| 欧美午夜精品一区二区三区| 91麻豆精品国产91久久久更新时间| 4438成人网| 精品国产免费一区二区三区香蕉| 欧美精品一区二区三区久久久| 国产网红主播福利一区二区| 国产精品国产三级国产三级人妇| 一区二区三区四区中文字幕| 视频一区二区国产| 粉嫩绯色av一区二区在线观看| 99re这里只有精品6| 7777精品久久久大香线蕉| 久久久久久久av麻豆果冻| 亚洲日本在线视频观看| 秋霞成人午夜伦在线观看| 国产精品12区| 91福利区一区二区三区| 欧美大尺度电影在线| 国产精品毛片无遮挡高清| 亚洲一卡二卡三卡四卡无卡久久| 久久99国产精品麻豆| 色综合中文字幕国产| 欧美一区二区三区免费在线看| 国产欧美日产一区| 日日夜夜免费精品| 成人h精品动漫一区二区三区| 欧美日韩亚洲不卡| 欧美国产亚洲另类动漫| 日韩电影在线一区| 99精品在线免费| 精品国产污污免费网站入口| 一区二区三区欧美激情| 国产精品一二三区| 日韩一区二区视频在线观看| 亚洲三级免费电影| 国产精品1024| 日韩美女主播在线视频一区二区三区| 国产精品国产三级国产三级人妇 | 一区二区三区四区亚洲| 国产一区二区三区久久久| 欧美精品xxxxbbbb| 亚洲精品五月天| 成人美女在线观看| 精品国产乱码久久久久久1区2区 | 国产欧美日韩综合精品一区二区| 日韩二区在线观看| 欧美中文字幕亚洲一区二区va在线 | 国产麻豆精品一区二区| 欧美精品一二三| 亚洲一级在线观看| 欧美一a一片一级一片| 亚洲激情男女视频| 99久久久精品| 成人欧美一区二区三区小说| 大胆亚洲人体视频| 国产欧美日韩麻豆91| 国产美女视频91| 久久久综合网站| 狠狠色丁香久久婷婷综合_中 | 国产在线精品一区二区夜色| 欧美一区二区三区四区五区| 日本不卡一区二区三区高清视频| 欧美日本免费一区二区三区| 伊人婷婷欧美激情| 欧美色图第一页| 偷拍一区二区三区四区| 91精品国产综合久久精品图片| 视频在线在亚洲| 日韩欧美久久一区| 国产一区二区成人久久免费影院| 久久综合网色—综合色88| 国精品**一区二区三区在线蜜桃| 精品对白一区国产伦| 风间由美性色一区二区三区| 中文字幕欧美日韩一区| 色偷偷成人一区二区三区91 | 欧美日本在线看| 奇米影视一区二区三区小说| 26uuu亚洲| 91网站在线观看视频| 一区二区三区中文字幕| 欧美精选一区二区| 国产精品一区二区久激情瑜伽| 国产精品入口麻豆原神| 欧美亚洲国产bt| 久久99精品国产91久久来源| 国产精品水嫩水嫩| 欧美日本乱大交xxxxx| 国产精品一级在线| 一区二区三区在线观看动漫| 日韩欧美一二三四区| 成人av免费观看| 日韩精品1区2区3区| 中文无字幕一区二区三区| 欧美午夜电影一区| 国产一区二区三区久久久| 亚洲欧美一区二区三区国产精品| 精品国产自在久精品国产| 国产一区二区电影| 亚洲成人精品在线观看| 日本一区二区三区久久久久久久久不 | 制服丝袜成人动漫| 不卡电影一区二区三区| 日韩不卡一区二区三区| 国产精品国产三级国产三级人妇| 4438亚洲最大| 色婷婷精品久久二区二区蜜臂av | 有码一区二区三区| 2014亚洲片线观看视频免费| 欧美影院一区二区| 成人自拍视频在线| 麻豆一区二区三区| 亚洲五码中文字幕| 亚洲品质自拍视频| 日本一区二区免费在线| 日韩欧美一区在线| 欧美日韩一二三区| 99久久国产免费看| 成人av免费在线播放| 黄网站免费久久| 日本特黄久久久高潮| 亚洲一区中文在线| 亚洲色图丝袜美腿| 国产精品嫩草影院com| 国产性色一区二区| 久久久国际精品| 日韩一区二区免费在线观看| 欧美日韩在线免费视频| 日本道精品一区二区三区| www.日韩大片| a4yy欧美一区二区三区| 高清国产午夜精品久久久久久| 国内精品写真在线观看| 久久国产麻豆精品| 韩国视频一区二区| 国精产品一区一区三区mba桃花| 麻豆精品视频在线观看免费| 免费高清视频精品| 精品一区二区免费看| 久久激情五月激情| 韩国毛片一区二区三区| 国产综合久久久久久久久久久久| 久久国产精品免费| 国产一区欧美日韩| 国产99精品国产| 国产99久久久精品| 91在线云播放| 欧美日韩亚洲另类| 欧美一区二区三区电影| 欧美一区二区日韩| 国产精品传媒在线| 一区二区三区四区在线| 亚洲成av人片| 久久99久久久欧美国产| 成人午夜电影久久影院| 色视频成人在线观看免| 欧美巨大另类极品videosbest | 久久精品欧美日韩精品| 国产精品视频yy9299一区| 亚洲视频一二三| 午夜不卡av免费| 看电影不卡的网站| 成人av影院在线| 欧美日韩一区二区三区四区| 欧美va在线播放| 国产欧美日韩久久| 亚洲成人免费影院| 国产一区三区三区| 欧洲色大大久久| 2020国产精品| 亚洲一区二区偷拍精品| 国产麻豆精品久久一二三| 色av一区二区| 欧美精品一区二区三区高清aⅴ | 欧美三级乱人伦电影| 日韩欧美国产成人一区二区| 国产精品福利一区| 麻豆国产精品官网| 91色porny| 久久精品一区二区三区av| 亚洲妇熟xx妇色黄| 国产盗摄一区二区三区| 欧美日韩一区国产| 中文字幕一区二区三区不卡在线| 日本视频一区二区三区| 色婷婷综合久久久久中文|