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

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

?? imagerx.m

?? 完整的OFDM鏈路程序并作了較為具體的解析從基本的bpsk,qpsk,qam到實際的ofdm系統
?? M
字號:
%COFDMRD This script reads a COFDM waveform from a .WAV file and decodes it.
%	This script is the complement to the COFDMWAV script.
%	This script read the WAV file given the extracts the first frame
%	in the file. This frame is decoded and compared with the known data
%	sent by the COFDMWAV script.
%
%	The wavefile to be decoded is expected to be a 16bit windows .WAV file
%	call RX.WAV
%
%	The data expected is that generated using genrand.m, having the
%	random seed set to 123456 before it is generated.
%
%	Copyright (c) July 1997 Eric Lawrey

%================
%	Modified:
%	29/7/97	11:00am	cofdmwav.m
%	Modified simtxrx.m so that it would just generate the output of the
%	COFDM transmitter, and store the result in a wav file.
%
%	29/7/97	11:30am cofdmwav.m
%	Changed it so that a wav file of multiple frames could be generated.
%
%	29/7/97	11:48am cofdmrd.m
%	Modifed cofdmwav.m so that it now decodes the wav sound file.
%
%	2/8/97	10:25pm	imagerx.m
%	Fixed an algorithum error for picking the starting time of the frames.
%	I was using the normal start time, as for single frame simulations, which
%	meant that only early frame start time errors could only with out causing
%	error. This was fixed by picking the start time early by 1/4 of the
%	guard time (1/2 the time of the cyclic extension of the symbol), thus
%	allowing a start time error of +- 1/4 guard time.
%
%	3/8/97	2:00pm imagerx.m
%	Added the option of compressing the contrast of the picture
%	to help prevent roll over of intensity when sending 8bits/word.
%	Also added data averaging, allowing duplicates of data to
%	be sent and recombined to reduce the phase error. This works,
%	except for it giving errors for black pixels.
%
%	12/8/97 10:30pm imagerx.m
%	Made many changes to the structure of the program. It can now receive
%	random data, pictures, and general binary files. Both the random data
%	and picture transmission appears to mostly work, however the
%	data padding for data sets which are not multiples of the number of
%	carriers doesn't work yet.Also a common setting script is now used
%	for both the transmitter and receiver. This is settings.m.
%
%	17/8/97 2:00 pm imagetx.m
%	Moved the calculation of the carriers to use into the settings
%	script.

%======================================================
%	External functions required to run this script:
%	wread16.m 		(from the Matlab web site)
%	calcerr.m
%	settings.m
%	rddatatx.m
%	findfrm.m
%	receive.m
%	convbase.m
%	bmpread.m
%	bmpwrite.m
%	wrimage.m
%	wavwrite.m

clear all;
flops(0);
tic;			%Measure the time it takes to run the simulation
settings		%Setup the link parameters
%=====================
%Read in the .wav file
%=====================
SignalIn = wread16(rxwavfile);

%======================================================
%Read in the picture to be received to check for errors
%======================================================
%Read the picture with no data averaging to get just the picture data
%[Datatx,h,w] = rdimage(filename,PictureComp);
rddatatx	%Read the data which was transmitted. This sets up data
		%transmitted (DataIn) and Datatx, and the height (h) and width (w)
		%of the original data
TotNoData = h*w;
NoData = h*w;
if SymbPerFrame ~= 0,
	SampPerFrame = (SymbPerFrame+1)*(ifftsize+guardtime);
	FrameGap = ifftsize+3*guardtime/2;
	zerotime = guardtime/2;
	SignalLeft = SignalIn;
	Finished = 0;
	AllData = [];
	AllDiff = [];
	First = 1;
	if fileknown == 0,
		%Don't know how many frames so estimate from the number of samples 
		NumFrames = floor((length(SignalIn)/(SampPerFrame)));
		disp(['Estimating the number of frames as : ' int2str(NumFrames)]);
	else
		NumFrames = ceil(((TotNoData*(OutWordSize/wordsize))...
				*DataAvg/NumCarr)/SymbPerFrame);
	end
	for k = 1:NumFrames,
		disp(['Decoding Frame : ', num2str(k)]);
		FrameCount = FrameCount+1;
		if First == 1,
			First = 0;

			Signal = SignalLeft(1:min(SampPerFrame*1.1,length(SignalLeft)));
			Scale = ([0:length(Signal)-1]/length(Signal)*mean(abs(Signal))).';
			Signal = Signal+Scale;

		else
			Signal = SignalLeft(1:min(FrameGap*3,length(SignalLeft)));
		end

		FrameStart = findfrm(Signal, FrameGap, quickrate,zerotime);


		FrameStart = FrameStart - guardtime/4;
		Signal =SignalLeft(FrameStart:...
			min(FrameStart+SampPerFrame,length(SignalLeft)));

		if k == NumFrames,
			Finished = 1;
			NoData = TotNoData;
		else
			SignalLeft = SignalLeft(...
				FrameStart+SampPerFrame-FrameGap*1.5:length(SignalLeft));
			plot(SignalLeft);
			TotNoData = TotNoData - SymbPerFrame*NumCarr/...
				(OutWordSize/wordsize)/DataAvg;
			NoData = floor(SymbPerFrame *NumCarr/(OutWordSize/wordsize)/DataAvg);
		end

		[Datarx, DiffPhRx] = receive(Signal,ifftsize,carriers,...
		 wordsize,guardtype,guardtime,DataAvg,NoData);
		AllDiff = [AllDiff DiffPhRx];
		AllData = [AllData Datarx];
	end
	DiffPhRx = AllDiff;
	Datarx = AllData;
else
	TotalWords = ceil((h*w*(OutWordSize/wordsize)*DataAvg)/NumCarr)*NumCarr;
	%===============================================================
	%Try to detect the start of a frame by envelop detection & filtering
	%===============================================================
	%Calc number of samples in a frame, no including the frame sync guard period
	SampPerFrame=((TotalWords/NumCarr)+1)*(ifftsize+guardtime);

	%Calc number of sample in a frame guard period
	SampPerFrmGrd = FrameGuard;

	disp('Searching for start of frame');
	disp('    -Filtered Signal');
	FrameGap = ifftsize+3*guardtime/2;
	zerotime = guardtime/2;
	FrameStart = findfrm(SignalIn(1:length(SignalIn)/2), FrameGap, quickrate,zerotime);
	FrameStart = FrameStart - guardtime/4;
	%cut out one frame to decode
	BaseSignal = SignalIn(FrameStart:FrameStart+SampPerFrame)/(2^15);
	disp('Decoding COFDM frame');



	%===============================
	%Decode the received COFDM frame
	%===============================
	[Datarx, DiffPhRx] = receive(BaseSignal,ifftsize,carriers,...
		 wordsize,guardtype,guardtime,DataAvg,NoData);
end

if (size(Datatx) == size(Datarx)),
	[PhError, Summary] = calcerr(Datatx,Datarx,DiffPhRx,wordsize);
	disp(['BER = ',num2str(Summary(1)),'    RMS phase error = ' num2str(Summary(2)),...
	'    Total number of errors = ', num2str(Summary(3))]);
else
	disp('WARNING: Length of received data does not match the transmitted length');
	disp(['length of transmitted data : ' int2str(length(Datatx))]);
	disp(['length of received data : ' int2str(length(Datarx))]);
end

Datarx = convbase(Datarx, wordsize, OutWordSize);
if DataType == 2,
	[x2,map] = bmpread(infile);
	%outfile = [outfile, num2str(SNR), 'db.bmp'];
	x=wrimage(Datarx,h,w,outfile,PictureComp);

	figure(1);
	image(x);
	colormap(map);
	title('Received image');


	figure(2);
	image(x2-1);
	colormap(map);
	title('Original Transmitted image');

	figure(3);
	colormap(map);
	image((x2-x)*8+128);
	title('Error in received image (Contrast Enhanced)');

	%errorfile = [errorfile, num2str(SNR), 'db.bmp'];

	bmpwrite(((x2-x)*8+128),map,errorfile);
	RmsAmpErr=mean(std(x2-1-x));	%RMS amplitude error of the picture
	RmsAmp = mean(std(x2));	%RMS amplitude of the original picutre
	SNRpic = 20*log10(RmsAmp/RmsAmpErr);
	disp(['SNR of the received image : ', num2str(SNRpic), ' dB']);
elseif DataType == 3,
	if OutWordSize == 8,
		DataSize = 'integer*1';
	elseif OutWordSize == 16,
		DataSize = 'integer*2';
	else
		error('OutWordSize no valid for sending binary files, must be 8 or 16');
	end
	fid = fopen(outfile,'wb');
	fwrite(fid,Datarx,DataSize);
	fclose(fid);
elseif DataType == 4,
	wavwrite(Datarx,fs,outfile);
end
disp(['Total Time: ' num2str(toc) 'sec']);
disp(['Total FLOPS: ' num2str(flops)]);
disp(['Process Speed : ' num2str(flops/toc) ' flops/sec']);


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩网站在线看片你懂的| 亚洲精品在线免费播放| 懂色av一区二区三区免费观看| 亚洲电影一区二区三区| 亚洲影院理伦片| 亚洲最新视频在线播放| 一区二区三区四区不卡视频| 亚洲日本韩国一区| 最近中文字幕一区二区三区| 国产精品私房写真福利视频| 国产欧美日韩不卡免费| 国产欧美一区二区精品久导航| 国产夜色精品一区二区av| 国产亚洲成年网址在线观看| 中文字幕欧美区| 国产精品福利一区二区三区| 日韩美女啊v在线免费观看| 亚洲精品视频在线观看网站| 亚洲一区二区三区四区不卡| 亚洲高清免费一级二级三级| 亚洲国产欧美一区二区三区丁香婷| 亚洲成人午夜电影| 激情综合色丁香一区二区| 精品亚洲porn| 91在线免费看| 欧美一二三四在线| 中日韩av电影| 亚洲亚洲精品在线观看| 久久99精品国产91久久来源| 99久久伊人精品| 欧美精品九九99久久| 久久久亚洲精品石原莉奈| 亚洲欧洲日韩综合一区二区| 亚洲成人av一区二区三区| 极品美女销魂一区二区三区免费| 国产a视频精品免费观看| 欧美色手机在线观看| 日韩欧美一区在线| 亚洲免费av高清| 免费看日韩a级影片| 91色porny蝌蚪| 精品久久久久久无| 亚洲成在人线免费| 国产69精品一区二区亚洲孕妇| 欧美日韩成人综合天天影院| 精品国产一区二区在线观看| 亚洲影院在线观看| 成人黄色小视频| 日本欧美加勒比视频| 日韩不卡手机在线v区| 成人精品国产免费网站| 欧美一区二区三区四区久久| 国产精品私房写真福利视频| 免费人成精品欧美精品 | 亚洲日本护士毛茸茸| 91精品国产综合久久精品app| 国产一区二区女| 欧美亚日韩国产aⅴ精品中极品| 久久综合成人精品亚洲另类欧美| 亚洲精品高清视频在线观看| 成人v精品蜜桃久久一区| 欧美一级黄色录像| 亚洲综合av网| 国产盗摄一区二区三区| 欧美一级搡bbbb搡bbbb| 一区二区三区日韩欧美| 成人avav在线| 国产婷婷色一区二区三区| 捆绑变态av一区二区三区| 欧美日韩大陆一区二区| 亚洲综合男人的天堂| av成人免费在线| 国产精品国产三级国产| 成人午夜激情在线| 国产亚洲欧洲997久久综合| 狠狠色丁香久久婷婷综合_中| 欧美一区二区精品| 久久99精品久久久久久国产越南| 欧美一区二区大片| 日韩成人午夜电影| 欧美一区二区三区啪啪| 美腿丝袜亚洲综合| 2017欧美狠狠色| 国产成人亚洲综合a∨猫咪| 国产偷国产偷亚洲高清人白洁| 国产成人精品亚洲日本在线桃色 | 亚洲成人精品影院| 欧美日韩国产乱码电影| 亚洲成av人片| 精品成人佐山爱一区二区| 国产一区二区三区免费播放| 精品久久久网站| 成人免费高清视频| 亚洲自拍偷拍av| 91精品国产乱码| 国产成人亚洲综合a∨婷婷| 国产精品女同一区二区三区| 日本韩国欧美在线| 婷婷中文字幕一区三区| 日韩你懂的在线播放| 国产精品911| 亚洲va中文字幕| 久久影音资源网| 在线观看国产一区二区| 青青草97国产精品免费观看无弹窗版| 精品国产sm最大网站免费看| 99久久精品费精品国产一区二区| 亚洲午夜精品网| 久久九九久久九九| 欧美性高清videossexo| 国产精品538一区二区在线| 一区二区三区中文在线| 久久先锋资源网| 欧美亚一区二区| 国产成人高清视频| 日韩精品一级中文字幕精品视频免费观看 | 久久久久国产一区二区三区四区| 国产自产v一区二区三区c| 久久九九99视频| 91国模大尺度私拍在线视频| 亚洲国产日日夜夜| 国产精品福利影院| 91精品国产综合久久久蜜臀图片| 麻豆视频观看网址久久| 综合av第一页| 欧美日韩国产精品自在自线| 不卡电影免费在线播放一区| 午夜欧美一区二区三区在线播放| 日韩一级完整毛片| 成人开心网精品视频| 亚洲免费资源在线播放| 日韩视频一区在线观看| 欧美精品一区二区三区很污很色的| 青青草国产成人av片免费| voyeur盗摄精品| 国产精品国产a| 高清成人在线观看| 欧美日韩精品一区二区在线播放| 亚洲一区二区视频在线观看| 久久久久久久国产精品影院| 美女网站一区二区| 亚洲午夜久久久| 欧美激情一区二区三区在线| 成人综合激情网| 欧美aⅴ一区二区三区视频| 中文字幕日韩一区二区| zzijzzij亚洲日本少妇熟睡| 亚洲电影视频在线| 中文字幕在线不卡| 日韩一区二区不卡| 日韩欧美一区二区久久婷婷| 91片在线免费观看| 丁香婷婷综合激情五月色| 日韩av中文字幕一区二区三区| 国产精品午夜久久| 久久久久久免费| 欧美成人性福生活免费看| 精品污污网站免费看| 国产成人丝袜美腿| 国产凹凸在线观看一区二区| 国产精品亚洲一区二区三区妖精| 午夜亚洲国产au精品一区二区| 怡红院av一区二区三区| 中文字幕av一区二区三区高| 欧美xxxxx牲另类人与| 日韩欧美在线综合网| 在线播放日韩导航| 99久久精品国产精品久久| 91网址在线看| 欧美亚洲自拍偷拍| 欧美亚洲国产怡红院影院| 在线观看免费成人| 精品久久久久久亚洲综合网| 久久品道一品道久久精品| 国产日韩欧美综合一区| 欧美国产成人精品| 亚洲综合免费观看高清完整版在线| 亚洲狼人国产精品| 亚洲一区二区在线视频| 亚洲午夜电影在线观看| 午夜视频在线观看一区二区三区| 午夜精品免费在线| 久久99国产精品久久99| 国产宾馆实践打屁股91| 日本韩国一区二区三区视频| 欧美视频一区二区三区四区| 欧美理论片在线| 欧美va天堂va视频va在线| 欧美色老头old∨ideo| 久久精品男人的天堂| 国产精品久久久久一区 | caoporm超碰国产精品| 91视频国产资源| 5858s免费视频成人| 久久影音资源网| 亚洲一级不卡视频| 另类小说欧美激情| 国产91精品一区二区| 在线免费一区三区| 欧美激情中文字幕|