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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? receive.m

?? This simulation script set allows for an OFDM transmission to be simulated. Imagetx.m generates th
?? M
字號(hào):
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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成av人片| 亚洲国产高清在线观看视频| 亚洲综合成人网| 在线日韩av片| 亚洲国产日产av| 7777女厕盗摄久久久| 裸体在线国模精品偷拍| 日韩写真欧美这视频| 精品在线亚洲视频| 久久精品无码一区二区三区| 成人在线综合网| 一区二区三区蜜桃| 欧美日韩精品一区二区三区 | 9人人澡人人爽人人精品| 国产欧美日韩亚州综合| av网站免费线看精品| 洋洋av久久久久久久一区| 欧美日韩国产影片| 黑人巨大精品欧美一区| 国产精品久久福利| 欧美性欧美巨大黑白大战| 日韩高清欧美激情| 国产日韩欧美精品综合| 在线国产电影不卡| 狠狠色综合播放一区二区| 国产精品大尺度| 69久久99精品久久久久婷婷 | 亚洲国产欧美日韩另类综合| 91精品久久久久久久久99蜜臂| 国产一区三区三区| 亚洲精品videosex极品| 日韩三级电影网址| 99这里只有精品| 喷水一区二区三区| 亚洲三级免费电影| 欧美一卡二卡三卡四卡| www.亚洲在线| 卡一卡二国产精品| 洋洋av久久久久久久一区| 亚洲精品一区二区三区99| 97精品国产露脸对白| 麻豆一区二区三| 一区二区三区在线影院| 久久九九全国免费| 欧美美女一区二区三区| 成人免费视频视频在线观看免费| 五月婷婷激情综合| 中文字幕在线观看不卡| 国产日韩三级在线| 91精品欧美一区二区三区综合在| 北条麻妃一区二区三区| 久久丁香综合五月国产三级网站| 亚洲精品伦理在线| 中文字幕第一区二区| 日韩欧美一区二区免费| 欧美视频精品在线观看| 99vv1com这只有精品| 国产成人超碰人人澡人人澡| 日本不卡一区二区三区| 一个色妞综合视频在线观看| 欧美高清在线视频| 久久综合给合久久狠狠狠97色69| 在线不卡中文字幕| 欧美日本一道本在线视频| 日本丶国产丶欧美色综合| 床上的激情91.| 国产成人在线视频播放| 激情综合亚洲精品| 久久国内精品自在自线400部| 亚洲一区二区三区四区在线免费观看 | 久久免费偷拍视频| 日韩精品一区二区三区在线观看 | 成人国产亚洲欧美成人综合网 | 亚洲成人久久影院| 亚洲一区二区免费视频| 亚洲男人的天堂在线观看| 中文字幕一区二区不卡| 国产精品理论片在线观看| 欧美激情一区二区三区在线| 久久久久久免费| 久久久久国产精品厨房| 国产亚洲精品aa午夜观看| 久久精品免视看| 中文字幕 久热精品 视频在线| 国产日韩综合av| 亚洲国产高清在线观看视频| 中国色在线观看另类| 中文字幕一区二区三区视频| 日韩伦理免费电影| 亚洲精品视频在线| 亚洲va国产va欧美va观看| 亚洲.国产.中文慕字在线| 午夜激情久久久| 蜜桃视频在线观看一区二区| 精品一区二区av| 大胆亚洲人体视频| 99re6这里只有精品视频在线观看| 色综合色综合色综合色综合色综合| 欧美一区二区三区四区高清| 日韩亚洲欧美综合| 久久精品夜色噜噜亚洲aⅴ| 亚洲国产成人在线| 亚洲日本一区二区三区| 天涯成人国产亚洲精品一区av| 日本不卡不码高清免费观看| 国产毛片精品一区| 色综合网站在线| 欧美精品一二三| 久久久亚洲综合| 亚洲日本乱码在线观看| 日韩高清在线观看| 国产成人午夜精品5599| 欧美专区亚洲专区| 欧美电影免费观看高清完整版在线 | 久久综合精品国产一区二区三区| 国产精品水嫩水嫩| 丝袜美腿一区二区三区| 国产成人免费在线| 欧美性大战xxxxx久久久| 亚洲精品在线免费播放| 亚洲丝袜精品丝袜在线| 九九国产精品视频| 色88888久久久久久影院按摩| 精品日韩在线观看| 亚洲精品一二三区| 国产专区欧美精品| 91久久精品一区二区| 久久综合九色欧美综合狠狠 | 欧美午夜寂寞影院| 久久久久亚洲综合| 亚洲高清免费视频| 国产成人在线免费观看| 欧美精品一二三| 中文字幕一区二区三区色视频| 另类综合日韩欧美亚洲| 色噜噜狠狠色综合欧洲selulu| 久久亚洲欧美国产精品乐播| 午夜视频在线观看一区二区三区| 国产aⅴ综合色| 日韩欧美二区三区| 亚洲午夜久久久久久久久电影网 | caoporm超碰国产精品| 日韩美女一区二区三区四区| 一区二区在线观看免费视频播放| 韩国毛片一区二区三区| 欧美老年两性高潮| 亚洲资源在线观看| 99re亚洲国产精品| 国产精品欧美极品| 国产一区二区三区免费| 91精品一区二区三区在线观看| 尤物在线观看一区| www.欧美日韩国产在线| 国产日产精品一区| 精品无码三级在线观看视频| 欧美一区二区女人| 亚洲不卡av一区二区三区| 91免费看视频| 中文字幕在线观看不卡| 成人不卡免费av| 国产精品视频免费| 懂色av一区二区夜夜嗨| 国产视频在线观看一区二区三区| 久久精品国产精品亚洲精品| 欧美一级片在线看| 日韩福利视频导航| 欧美一区二区网站| 日韩中文字幕不卡| 欧美一区二区视频在线观看2020| 天天色天天爱天天射综合| 欧美日韩大陆在线| 日韩高清不卡一区| 日韩一二在线观看| 激情成人午夜视频| 国产日韩精品一区二区三区在线| 国产黑丝在线一区二区三区| 日本一区二区成人在线| 成人国产精品免费观看动漫| 中文字幕在线不卡视频| 日韩成人伦理电影在线观看| 91精品在线免费观看| 久久精品噜噜噜成人av农村| 久久综合九色综合久久久精品综合| 国产麻豆成人传媒免费观看| 国产欧美日韩麻豆91| av一区二区三区在线| 一区二区在线电影| 欧美美女喷水视频| 国产一区二区影院| 国产精品乱码久久久久久| 欧洲一区在线观看| 免费成人结看片| 欧美国产一区二区| 在线观看免费视频综合| 奇米影视在线99精品| 亚洲国产精品成人综合| 色素色在线综合| 奇米色777欧美一区二区| 久久久久久久av麻豆果冻| 99re这里只有精品首页|