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

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

?? receive.m

?? 基于Matlab 5.3開發的ofdm仿真程序
?? 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一区二区三区免费野_久草精品视频
欧美成人一区二区三区片免费| 亚洲视频1区2区| 日韩久久久精品| 日韩一级大片在线观看| 91精品国产色综合久久不卡电影| 欧美日韩亚洲综合在线| 欧美日韩一区二区三区四区| 欧美日韩日日夜夜| 日韩欧美资源站| 精品欧美乱码久久久久久| 久久精品夜夜夜夜久久| 亚洲国产激情av| 亚洲黄色性网站| 丝袜美腿亚洲色图| 精品制服美女丁香| 国产一区二区毛片| 成人精品小蝌蚪| 在线国产电影不卡| 日韩视频免费观看高清完整版 | 亚洲婷婷在线视频| 亚洲小说春色综合另类电影| 午夜精品成人在线视频| 蜜臀av亚洲一区中文字幕| 国产精品自拍毛片| 色综合天天综合| 制服.丝袜.亚洲.中文.综合| 久久久久久久综合色一本| 中文字幕视频一区二区三区久| 欧美mv日韩mv国产网站| 在线观看av一区| 欧美一区二区视频免费观看| 久久女同精品一区二区| 一区视频在线播放| 丝袜诱惑制服诱惑色一区在线观看| 美国十次了思思久久精品导航| 国产精品12区| 欧美日韩国产一区| 国产人妖乱国产精品人妖| 一区二区三区视频在线看| 美日韩一区二区| 成人av动漫在线| 欧美精品日韩一本| 国产精品情趣视频| 日韩福利电影在线观看| www.激情成人| 日韩欧美在线不卡| 亚洲色图制服诱惑| 精品一区二区三区香蕉蜜桃| 91久久精品一区二区二区| 精品国产制服丝袜高跟| 亚洲女性喷水在线观看一区| 狠狠色伊人亚洲综合成人| 91精品福利在线| 久久久国产精品午夜一区ai换脸| 亚洲综合免费观看高清完整版| 国内成人精品2018免费看| 欧日韩精品视频| 久久精品亚洲一区二区三区浴池 | av电影在线观看不卡| 欧美一区二区三区四区五区| 一区视频在线播放| 韩国一区二区三区| 欧美久久一二三四区| 国产精品久久久久久亚洲毛片| 免费在线观看成人| 在线观看一区二区视频| 中文无字幕一区二区三区 | 亚洲柠檬福利资源导航| 欧美激情一区二区三区不卡| 国产麻豆精品95视频| 日韩中文字幕91| 一道本成人在线| 国产欧美视频在线观看| 理论片日本一区| 欧美日韩高清一区二区| 亚洲免费av在线| 波多野结衣中文字幕一区| 精品国产91亚洲一区二区三区婷婷| 亚洲国产裸拍裸体视频在线观看乱了 | 久久精品亚洲一区二区三区浴池| 婷婷久久综合九色综合绿巨人| 波多野结衣在线一区| 久久精品一区蜜桃臀影院| 久久97超碰国产精品超碰| 欧美一区三区四区| 亚洲成人黄色影院| 欧美日韩视频在线一区二区| 一区二区三区四区不卡在线 | 精品国产露脸精彩对白| 看国产成人h片视频| 3atv一区二区三区| 婷婷开心激情综合| 欧美精品久久99久久在免费线| 亚洲最快最全在线视频| 91视频在线看| 亚洲免费观看高清完整| 一本大道久久a久久精品综合| 国产精品美女一区二区| 蜜臀久久久久久久| 成人av免费在线播放| 亚洲国产高清不卡| 成人av网站在线观看| 国产精品久久午夜| 91啪在线观看| 一区二区三区免费观看| 在线免费观看视频一区| 一区二区三区四区国产精品| 欧美撒尿777hd撒尿| 亚洲成a人v欧美综合天堂下载| 欧美视频一区二区三区四区| 亚洲超丰满肉感bbw| 欧美一区二区在线看| 蜜臀久久久久久久| 久久蜜臀中文字幕| 成人黄色av网站在线| 亚洲日本乱码在线观看| 日本精品一级二级| 日韩精品欧美精品| 欧美不卡在线视频| 国产成人在线观看| 亚洲天堂福利av| 欧美日韩国产精品成人| 免费看欧美女人艹b| 久久亚洲影视婷婷| 99久久综合色| 亚洲va欧美va人人爽| 欧美tickling挠脚心丨vk| 国产成人精品三级| 亚洲精品v日韩精品| 91精品国产手机| 国产suv一区二区三区88区| 亚洲女人小视频在线观看| 欧美一区二区视频在线观看2020| 国内精品伊人久久久久av一坑| 国产精品天美传媒沈樵| 欧美日韩中字一区| 国产尤物一区二区| 亚洲人xxxx| 日韩一级黄色大片| proumb性欧美在线观看| 亚洲国产精品久久久久婷婷884 | eeuss鲁一区二区三区| 亚洲一级在线观看| 久久久久久久综合| 欧美在线不卡视频| 国产精品一区二区三区网站| 亚洲精品视频在线观看网站| 欧美一级午夜免费电影| 99这里只有久久精品视频| 日韩不卡在线观看日韩不卡视频| 日本一区二区免费在线 | 国产精品电影一区二区三区| 在线不卡一区二区| 天堂在线一区二区| 中文字幕欧美日韩一区| 欧美精品乱人伦久久久久久| 国产91综合一区在线观看| 日韩黄色免费电影| 亚洲少妇最新在线视频| 久久婷婷国产综合国色天香| 欧美色视频在线| 高清av一区二区| 美腿丝袜在线亚洲一区| 一区二区三区在线不卡| 欧美国产精品专区| 日韩一区二区中文字幕| 在线精品视频小说1| 国产盗摄一区二区三区| 免费在线观看一区| 亚洲国产人成综合网站| 亚洲婷婷在线视频| 欧美国产1区2区| 欧美电影免费观看完整版| 欧美午夜一区二区| 99久久精品情趣| 国产成人精品影视| 精品一区二区影视| 日本最新不卡在线| 亚洲成人手机在线| 亚洲欧美一区二区久久| 中文一区二区在线观看| 久久网这里都是精品| 日韩欧美国产系列| 91精品麻豆日日躁夜夜躁| 欧美色精品在线视频| 色婷婷综合久久| youjizz国产精品| 国产成人午夜精品5599| 精品一区二区久久久| 奇米777欧美一区二区| 丝袜诱惑制服诱惑色一区在线观看| 亚洲美女视频一区| 国产精品国产三级国产普通话99 | 综合久久久久久| 国产亚洲精品中文字幕| 久久久精品国产免大香伊| 精品88久久久久88久久久| 精品日韩一区二区| 久久综合久久鬼色| 久久品道一品道久久精品|