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

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

?? receive.m

?? 介紹OFDM的MATLAB的各種實現方式 幫助初學者能夠較快理解和掌握
?? M
字號:
function [Datarx, DiffPhRx] = receive(TimeSignal,ifftsize,carriers,...
		 wordsize,guardtype,guardtime,DataAvg,NoData,OutWordSize)
%RECEIVE Decodes a COFDM time waveform back into its data.
%	It decode the data from one data frame. This function requires
%	that the TimeSignal has the correct starting position.
%	function [Datarx, DataOut, DiffPh] = receive(TimeSignal,ifftsize,carriers,...
%		 wordsize,guardtype,guardtime,DataAvg,NoData)
%
%	INPUTS:
%	========
% 	TimeSignal : This is the input time signal for the COFDM waveform. The format
%		     of the output is a row vector.
%	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
%	DataAvg    : Data Averaging. Number of repeats sent of the same
%		     data word, so that it can be averaged at the receiver
%		     to help reduce the phase error.
%	NoData: is used for removing padding of the data. The padding is added
%		     by the transmitter on the last symbol if the number of data
%		     words doesn't fit into an integer number of symbols. NoData
%		     is the number of data words transmitted in the frame being
%		     decoded, e.g. if 10 bytes of data was sent and the DataOut
%		     format is byte format then NoData = 10.
%		     If padding hasn't been used set NoData to 0.
%	OutWordSize: This is the wordsize of the output data (DataOut). This will
%		     normally be set to 8, if the original data is in a byte format.
%		     However OutWordSize may be set to higher values (e.g. 16) if
%		     analog signal are being transmitted on the COFDM instead of
%		     digital data. The value of OutWordSize must match InWordSize
%		     on the transmitted. Note : OutWordSize is an optional
%		     parameter with a default of 8 bits.
%
%	OUTPUTS:
%	========
%	Datarx     : This is the output data that has been decoded from the 'TimeSignal'
%	      	     Its format is in words the same size as 'wordsize'. The output
%		     format of the data is a row vector.
%
%	DiffPhTx   : This is the actual phase difference between each symbol for the data
%		     This includes any noise or aborations due to the channel. It can be
%		     used for generating a histogram of the phase error. It has been adjusted
%		     so that the phase is centered around the phase locations of the data
%		     For Example for QPSK, the output phase is from -45 deg to 315 deg. This
%		     is for IQ locations at, 0, 90, 180, 270 deg.
%
%	Copyright (c) Eric Lawrey 1997
%
%	See:	TRANSMIT, WRFILE, CHANNEL

%	Modifications:
%	16/6/97	Started working on the function, it isn't finished yet.
%	17/6/97 Continued work on the receive function, it is now mostly finished
%		and has been partly tested.
%	18/6/97	Changed the way thay the DiffPhTx is generated, so that the phase out is based
%		on the phase locations. This was done so the phase error can be easily
%		calculated. Negative phase errors centered around the 0deg phasor are no
%		longer 359.6 deg for example but -0.4 deg. Fixed a bug due to having
%		guardtype = 0
%	3/8/97	Added data averaging allowing duplicate data to be sent to
%		reduce the error rate.
%	12/8/97	Updated to data averaging to the same method used by the transmitter
%		and added the ability to trim the data back to compensate for padding.
%		The padding doesn't work yet
%	13/8/97	The padding problem was fixed by rotating the transmitted data
%		which was incorrect, and clipping the DiffPhRx array to the
%		correct length.
%

% Required External Functions
%	subsamp.m

if nargin < 9,
	OutWordSize = 8;	%Set the default
end

%=========================================================================
%Strip back the number of samples to make it a multiple of the symbol size
%=========================================================================
if guardtype == 0,
	guardtime = 0;
end

SymbLen = length(TimeSignal)+guardtime;	%Find total number of samples
					%per symbol, including guard.
TimeSignal = TimeSignal(1:(SymbLen-rem(SymbLen,ifftsize+guardtime)));

					%Find the number of symbols in the input time waveform
numsymb = length(TimeSignal)/(ifftsize+guardtime);

%==========================================================================
%Reshape the linear time waveform into fft segments and remove guard period
%==========================================================================
if guardtype ~= 0,
	symbwaves = reshape(TimeSignal,ifftsize+guardtime,numsymb);
	symbwaves = symbwaves(guardtime+1:ifftsize+guardtime,:); %Strip off the guard period
else
	symbwaves = reshape(TimeSignal,ifftsize,numsymb);
end

fftspect = fft(symbwaves)';	%Find the spectrum of the symbols

DataCarriers = fftspect(:,carriers);	%Extract the used carriers from the symbol spectrum.
clear fftspect;				%Save some memory

CarrPh = angle(DataCarriers);		%Find the phase angle of the data
NegCarrPh = find(CarrPh<0);		%Map the phase angle to 0 - 2pi radians
CarrPh(NegCarrPh) = rem(CarrPh(NegCarrPh)+2*pi,2*pi);

clear NegCarrPh;
%================================
%Apply DQPSK on the received data
%================================
DiffPh = diff(CarrPh);		 	%Compare phase of current to previous symbol

DiffPh = DiffPh*360/(2*pi);		%convert from radians to degrees

NegPh=find(DiffPh<0);			%Make all phases between 0 - 360 degrees
DiffPh(NegPh)=DiffPh(NegPh)+360;

DiffPh = reshape(DiffPh',1,size(DiffPh,1)*size(DiffPh,2)); %Convert back to a serial stream
DiffPh = subsamp(DiffPh,DataAvg,1,0);	%Average the phase for duplicate words
NegPh=find(DiffPh<0);			%Make all phases between 0 - 360 degrees
DiffPh(NegPh)=DiffPh(NegPh)+360;

%DiffPh = reshape(DiffPh,size(DiffPh,1)*DataAvg,size(DiffPh,2)/DataAvg);
Datarx = zeros(size(DiffPh));
PhInc = 360/(2^wordsize);		%Find the increment between the phase locations
DiffPhRx = rem(DiffPh/(PhInc)+0.5,(2^wordsize))*(PhInc)-(PhInc/2);

Datarx = floor(rem(DiffPh/(360/(2^wordsize))+0.5,(2^wordsize)));

if NoData == 0,
	%Stip back the length of Datarx so it is a multiple of the
	%OutWordSize/wordsize.
	Datarx = Datarx(1:floor(length(Datarx)/(OutWordSize/wordsize))*(OutWordSize/wordsize));
else
	if (NoData*(OutWordSize/wordsize) > length(Datarx)),
		disp('WARNING : Received Data Shorter than expected');
		disp(['Expected = ', num2str(NoData*(OutWordSize/wordsize))]);
		disp(['Received = ', num2str(length(Datarx))]);
		
	else
		Datarx = Datarx(1:NoData*(OutWordSize/wordsize));
		DiffPhRx = DiffPhRx(1:NoData*(OutWordSize/wordsize));
	end
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品免费在线观看| 欧美精品一区二区三区很污很色的| 日韩一区二区视频| 一区二区三区波多野结衣在线观看| 一区二区在线看| 懂色av一区二区三区免费观看| 在线电影欧美成精品| 亚洲高清免费观看| 在线播放中文字幕一区| 日本在线播放一区二区三区| 欧美浪妇xxxx高跟鞋交| 日韩二区在线观看| 日韩女优av电影| 粉嫩av一区二区三区| 亚洲男人都懂的| 欧美日韩aaaaaa| 亚洲制服丝袜一区| 欧美日产在线观看| 青青草国产精品97视觉盛宴| 欧美一区二区网站| www.综合网.com| 亚洲国产美女搞黄色| 欧美性生交片4| 天天操天天干天天综合网| 欧美性色综合网| 亚洲丶国产丶欧美一区二区三区| 欧美人成免费网站| 久久99精品视频| 国产精品天天摸av网| 99在线精品视频| 蜜臀久久99精品久久久久久9| 国产三级欧美三级| 欧美亚洲国产一区在线观看网站| 天天av天天翘天天综合网| 久久亚洲影视婷婷| 欧美精品v日韩精品v韩国精品v| 懂色av一区二区三区免费看| 五月婷婷综合在线| 国产精品少妇自拍| 日韩欧美另类在线| 666欧美在线视频| 欧美自拍丝袜亚洲| 色综合久久久网| av电影在线观看不卡| 成人综合婷婷国产精品久久| 韩国欧美国产1区| 亚洲va国产天堂va久久en| 国产精品久久久久久久久快鸭| 26uuu亚洲综合色欧美| 欧美电视剧免费观看| 日韩久久精品一区| 久久久久国产精品厨房| 亚洲精品一区二区三区在线观看 | 亚洲图片欧美视频| 亚洲在线成人精品| 午夜日韩在线电影| 午夜视频一区二区三区| 亚洲午夜久久久久久久久久久| 1000部国产精品成人观看| 亚洲国产岛国毛片在线| 国产日韩精品一区| 国产精品久久久久久久久免费相片 | 精品亚洲aⅴ乱码一区二区三区| 日韩vs国产vs欧美| 无吗不卡中文字幕| 国产精品 日产精品 欧美精品| 99r国产精品| 欧美久久久久久久久| 久久日一线二线三线suv| 精品国免费一区二区三区| 国产欧美日韩一区二区三区在线观看| 久久久久99精品一区| 亚洲视频一区二区在线| 亚洲成在人线在线播放| 免费一级片91| 色综合久久久网| 欧美成人video| 精品久久一二三区| 亚洲一级二级在线| 精品中文字幕一区二区| 丁香婷婷综合五月| 91精品婷婷国产综合久久性色| 国产视频一区在线播放| 亚洲人成网站精品片在线观看 | 欧美电影免费观看高清完整版| 一区二区在线免费| 91丝袜高跟美女视频| 26uuuu精品一区二区| 日本在线不卡视频一二三区| 成人av小说网| 在线播放亚洲一区| 中文字幕一区二区不卡| 国产一区二区美女| 欧美成人免费网站| 日韩av一级电影| 欧美高清激情brazzers| 一区二区三区中文字幕| 日本韩国精品一区二区在线观看| 中文字幕精品三区| 99久久综合99久久综合网站| 久久久精品日韩欧美| 奇米色一区二区| 在线欧美小视频| 亚洲蜜臀av乱码久久精品蜜桃| 成人免费视频视频| 欧美激情在线看| 国产成人免费在线| 国产精品三级视频| 91啪亚洲精品| 亚洲国产精品视频| 欧美一级黄色大片| 国产麻豆视频精品| 中文字幕欧美国产| 91一区在线观看| 一区二区三区在线免费观看| 国产成人午夜高潮毛片| 欧美激情一区二区在线| 久久99精品一区二区三区| 欧美日韩国产精品自在自线| 天使萌一区二区三区免费观看| 日韩你懂的在线播放| 99久久精品免费精品国产| 午夜精品一区二区三区免费视频| 久久嫩草精品久久久精品| 欧洲视频一区二区| 国产福利一区二区三区| 亚洲成人资源在线| 精品福利在线导航| 色综合咪咪久久| 国模无码大尺度一区二区三区| 久久久午夜电影| 色94色欧美sute亚洲线路一久| 秋霞成人午夜伦在线观看| 日韩一区欧美一区| 欧美精品一区二区三区蜜桃 | 日本 国产 欧美色综合| 国产精品你懂的在线| 制服丝袜亚洲播放| 欧美日韩一区二区在线观看视频| 成人午夜激情在线| 狠狠色综合色综合网络| 国产精品一色哟哟哟| 视频在线观看一区| 性欧美大战久久久久久久久| 国产精品视频一二三区| 日韩精品一区国产麻豆| 色欧美乱欧美15图片| 日本v片在线高清不卡在线观看| 中文字幕亚洲精品在线观看| 国产欧美综合色| 1024国产精品| 亚洲综合色网站| 日韩极品在线观看| 美腿丝袜在线亚洲一区| 蜜桃av噜噜一区| 另类专区欧美蜜桃臀第一页| 亚洲国产精品一区二区久久恐怖片 | 亚洲精品免费视频| 亚洲精品成人悠悠色影视| 亚洲乱码日产精品bd| 亚洲愉拍自拍另类高清精品| 亚洲影视在线观看| 午夜精品爽啪视频| 精品一区二区三区在线播放 | 国产麻豆精品在线| 岛国av在线一区| av在线综合网| 欧美主播一区二区三区| 欧美人牲a欧美精品| 久久久久久亚洲综合| 亚洲欧美欧美一区二区三区| 舔着乳尖日韩一区| 粗大黑人巨茎大战欧美成人| 91久久线看在观草草青青| 91麻豆精品久久久久蜜臀| 日韩美女视频在线| 亚洲一区免费观看| 韩国毛片一区二区三区| 在线日韩国产精品| 国产欧美综合在线观看第十页| 亚洲精品一二三| 激情小说欧美图片| 一本久道久久综合中文字幕| 欧美日韩国产美女| 精品国产伦一区二区三区观看体验| 国产午夜精品久久| 欧美aa在线视频| 色综合久久88色综合天天免费| 精品人在线二区三区| 亚洲小少妇裸体bbw| 韩国女主播成人在线| 色狠狠桃花综合| 国产精品久久久久久久久搜平片| 五月天欧美精品| 99热这里都是精品| 中文字幕一区二区三区精华液| 国产一区二区0| 日韩欧美资源站| 免费美女久久99| 精品国产人成亚洲区|