亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产九九视频一区二区三区| 国产亲近乱来精品视频 | 亚洲一二三四在线| 综合精品久久久| 久久精品一区二区| 精品久久久久久久久久久久包黑料| 91精品国产色综合久久不卡蜜臀| 欧美唯美清纯偷拍| 99精品热视频| 欧美日韩另类一区| 欧美无砖专区一中文字| 这里是久久伊人| 91精品国模一区二区三区| 日韩欧美国产一二三区| 久久久午夜电影| 亚洲欧美综合在线精品| 亚洲午夜av在线| 久久成人久久爱| 国产福利一区二区三区在线视频| 成人黄色软件下载| 色系网站成人免费| 日韩欧美高清dvd碟片| www亚洲一区| 亚洲欧美韩国综合色| 亚洲在线免费播放| 国产在线精品一区二区夜色| a4yy欧美一区二区三区| 日本韩国欧美在线| 日韩欧美国产综合一区| 国产欧美日韩另类一区| 亚洲国产成人91porn| 狠狠v欧美v日韩v亚洲ⅴ| 国产激情视频一区二区三区欧美 | 成人网在线免费视频| 色诱亚洲精品久久久久久| 51精品秘密在线观看| 欧美—级在线免费片| 亚洲综合自拍偷拍| 国产在线精品一区二区夜色| 欧洲精品一区二区| 国产亚洲短视频| 肉肉av福利一精品导航| aaa欧美日韩| 2021久久国产精品不只是精品| 亚洲六月丁香色婷婷综合久久| 美女一区二区在线观看| 色激情天天射综合网| 国产丝袜在线精品| 日本视频在线一区| 在线亚洲高清视频| 国产精品色婷婷久久58| 精品一区精品二区高清| 欧美区一区二区三区| 中文字幕一区二区日韩精品绯色 | 欧美v国产在线一区二区三区| 一区免费观看视频| 国产麻豆精品视频| 日韩亚洲欧美高清| 日韩和的一区二区| 色婷婷激情一区二区三区| 日本一区二区三区在线不卡| 久久99国产精品成人| 91精品国产综合久久久久久久| 亚洲毛片av在线| 色综合久久综合中文综合网| 日本一区二区三区电影| 国产老妇另类xxxxx| 欧美变态tickle挠乳网站| 日日摸夜夜添夜夜添精品视频| 色欧美日韩亚洲| 亚洲丝袜美腿综合| www.欧美色图| 亚洲欧洲99久久| 粉嫩av一区二区三区| 国产情人综合久久777777| 国产自产高清不卡| 久久久国产午夜精品| 国产高清亚洲一区| 中文字幕久久午夜不卡| 岛国精品在线观看| 国产精品理伦片| 91影院在线观看| 亚洲一区电影777| 欧美日韩和欧美的一区二区| 亚洲理论在线观看| 欧美日本一道本在线视频| 亚洲bt欧美bt精品| 日韩午夜激情av| 国产黄色精品视频| 亚洲人吸女人奶水| 欧美日韩一本到| 蜜桃一区二区三区在线| 欧美经典三级视频一区二区三区| www.亚洲色图| 亚洲成人精品影院| 精品国产91亚洲一区二区三区婷婷| 精品一区二区久久| 最新国产精品久久精品| 日本伦理一区二区| 男女性色大片免费观看一区二区| 久久久一区二区| 91在线观看下载| 日韩一区精品字幕| 久久久久久97三级| 91官网在线观看| 久久97超碰国产精品超碰| 成人免费一区二区三区在线观看| 99精品视频在线观看免费| 亚洲成a人片综合在线| 久久综合999| 欧美性xxxxxx少妇| 国内精品伊人久久久久av一坑| 亚洲国产高清在线| 欧美一区二区视频网站| 成人免费毛片片v| 日本麻豆一区二区三区视频| 国产精品白丝在线| 日韩精品一区国产麻豆| 一本大道久久a久久精二百| 久久99久久精品| 久久久久国产精品麻豆ai换脸 | 97精品国产97久久久久久久久久久久 | 欧美一级免费大片| 久久99精品国产麻豆不卡| 91精品国模一区二区三区| 99亚偷拍自图区亚洲| 欧美日韩国产中文| 成人激情电影免费在线观看| 欧美四级电影在线观看| 国产精品免费久久久久| 国产精品一区二区在线播放| 国产精品亚洲一区二区三区妖精| 久久噜噜亚洲综合| 5566中文字幕一区二区电影| 国产欧美日韩亚州综合| 在线视频你懂得一区二区三区| 国产精品欧美一区喷水| 欧美成人伊人久久综合网| 色婷婷久久综合| 一区二区国产视频| 国产精品二三区| 91美女精品福利| 国产69精品久久99不卡| 国产精品一区二区免费不卡| 免费成人你懂的| 亚洲欧洲成人av每日更新| 久久影院视频免费| 欧美日韩另类国产亚洲欧美一级| 日本不卡一区二区三区高清视频| 欧美自拍丝袜亚洲| 国产精品性做久久久久久| 视频一区欧美日韩| 欧美国产精品一区| 日韩中文字幕91| 日本欧美一区二区在线观看| 精品欧美一区二区久久| 国产精品一区二区男女羞羞无遮挡| 亚洲视频免费在线观看| www.在线欧美| 成人免费av网站| 性做久久久久久久久| 视频一区在线视频| 亚洲午夜羞羞片| 国产三级精品在线| 国产精品一二三| 91成人免费在线| 欧美日产在线观看| 亚洲一区影音先锋| 国产亚洲精久久久久久| 成人爱爱电影网址| 5858s免费视频成人| 日本美女一区二区三区| 亚洲h在线观看| 欧美电影影音先锋| 亚洲女与黑人做爰| 国产成人精品免费| 91精品国产美女浴室洗澡无遮挡| 亚洲精品五月天| 婷婷综合五月天| 亚洲欧美日韩在线| 国产精品免费视频观看| 国产精品久久久久久久午夜片| 麻豆成人综合网| 日韩精品成人一区二区三区 | 日韩午夜在线影院| 91在线无精精品入口| 91精品在线一区二区| 日韩欧美色电影| 91一区二区三区在线观看| 一区二区三区在线观看欧美| 亚洲日本va午夜在线影院| 日韩激情在线观看| 老汉av免费一区二区三区| 亚洲国产日韩a在线播放性色| 亚洲最色的网站| 国产河南妇女毛片精品久久久| 91黄色免费看| 国产精品国产三级国产有无不卡 | a4yy欧美一区二区三区| 欧美视频三区在线播放|