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

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

?? imagerx.m

?? This simulation script set allows for an OFDM transmission to be simulated. Imagetx.m generates th
?? 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一区二区三区中文| 亚洲精品国产精品乱码不99| 精品一区二区三区av| 欧美一区二区三区的| 久久电影网站中文字幕| 精品国产一区二区三区久久久蜜月| 全国精品久久少妇| 久久欧美中文字幕| 成人深夜视频在线观看| 一区二区三区在线视频免费| 欧美色大人视频| 毛片av中文字幕一区二区| 精品国产精品一区二区夜夜嗨| 国产xxx精品视频大全| 美腿丝袜在线亚洲一区| 精品电影一区二区三区| 成人动漫一区二区三区| 一区二区视频在线看| 91麻豆精品国产91久久久使用方法 | 亚洲午夜在线视频| 91精品国产综合久久精品| 国产一区二区免费视频| 亚洲天堂av一区| 欧美日韩国产大片| 国产精品一区二区男女羞羞无遮挡 | 国产精品乱人伦中文| 欧美影院一区二区| 国精品**一区二区三区在线蜜桃| 亚洲国产精品成人综合| 欧美日韩一区精品| 国产精品综合网| 亚洲成人第一页| 精品国产乱码久久久久久老虎 | 在线观看中文字幕不卡| 麻豆国产一区二区| 亚洲欧美日韩一区二区三区在线观看| 欧美年轻男男videosbes| 国产福利91精品一区| 一区二区不卡在线播放 | 日韩美一区二区三区| 91在线观看地址| 激情六月婷婷综合| 亚洲丶国产丶欧美一区二区三区| 久久久久久久久久看片| 欧美艳星brazzers| 高清国产一区二区| 蜜臀av国产精品久久久久| 亚洲男人的天堂av| 中文字幕精品综合| 欧美成人一区二区三区在线观看| 欧美在线视频不卡| 99久久久无码国产精品| 国产suv精品一区二区6| 日本一区中文字幕| 亚洲高清免费观看 | 99国产精品久| 国产麻豆精品theporn| 亚洲电影一级黄| 亚洲精选一二三| 亚洲欧洲精品天堂一级| 久久久久久97三级| 欧美成人在线直播| 欧美丰满一区二区免费视频| 在线观看国产91| 色婷婷av一区二区三区软件| 99re热视频精品| 成人黄色777网| 成人午夜伦理影院| 国产成人午夜精品5599| 国产尤物一区二区| 国产一区在线看| 国产麻豆一精品一av一免费| 精品午夜久久福利影院| 久久精品国产亚洲a| 麻豆久久久久久| 精品无人码麻豆乱码1区2区| 奇米影视一区二区三区小说| 轻轻草成人在线| 久久精品av麻豆的观看方式| 久久精品72免费观看| 麻豆久久久久久久| 国产一区二区三区观看| 国产露脸91国语对白| 国产成人免费视| www.久久久久久久久| 91麻豆6部合集magnet| 色久优优欧美色久优优| 欧美三级韩国三级日本三斤 | 91亚洲精品乱码久久久久久蜜桃| 岛国av在线一区| 色综合网站在线| 欧美日韩免费视频| 日韩女优制服丝袜电影| 久久久欧美精品sm网站| 国产精品麻豆一区二区| 亚洲天堂av老司机| 首页国产丝袜综合| 久久丁香综合五月国产三级网站| 国产精品一级片在线观看| 成人激情开心网| 欧美体内she精高潮| 欧美一区二区三区人| 久久精品网站免费观看| 中文字幕中文字幕一区二区| 亚洲一区二区黄色| 老司机免费视频一区二区| 国产成人啪免费观看软件| 91丨porny丨中文| 日韩亚洲欧美中文三级| 欧美激情一区在线| 亚洲va国产va欧美va观看| 久久99国产精品免费网站| 成人动漫在线一区| 这里只有精品视频在线观看| 国产亚洲欧美一级| 亚洲午夜一区二区| 国产毛片一区二区| 欧美日韩一级片在线观看| 久久色中文字幕| 亚洲自拍偷拍av| 国产剧情一区二区| 欧美日韩一区中文字幕| 国产欧美一区二区精品仙草咪| 亚洲一级二级在线| 国产成人亚洲综合a∨婷婷| 欧美三级电影网| 国产精品女人毛片| 麻豆91免费看| 色又黄又爽网站www久久| 天天操天天综合网| 国产精品免费免费| 亚洲一区二区三区三| 久久爱www久久做| 成人免费毛片高清视频| 4hu四虎永久在线影院成人| 中文字幕中文字幕一区二区| 男女男精品视频网| 欧美性猛交xxxx乱大交退制版| 久久久久成人黄色影片| 五月激情综合婷婷| 91在线小视频| 欧美国产1区2区| 极品少妇xxxx精品少妇偷拍| 欧美日韩一二三| 伊人开心综合网| 99久久精品国产网站| 久久一二三国产| 美洲天堂一区二卡三卡四卡视频| 欧美中文字幕一区| 亚洲品质自拍视频网站| 粉嫩av亚洲一区二区图片| 日韩欧美国产精品一区| 亚洲成人免费影院| 欧美亚洲动漫制服丝袜| 自拍偷拍国产精品| av爱爱亚洲一区| 国产精品毛片大码女人| 成人午夜视频在线观看| 国产亚洲欧美日韩日本| 国产美女一区二区| 久久精品人人做人人综合| 九九九久久久精品| 精品日韩一区二区三区免费视频| 日本vs亚洲vs韩国一区三区二区 | 成人高清视频在线| 久久久久久免费毛片精品| 精品一区二区三区在线观看| 在线电影院国产精品| 视频精品一区二区| 91精品福利在线一区二区三区 | 欧美成人精品1314www| 日韩高清一级片| 精品日韩在线一区| 久久疯狂做爰流白浆xx| 久久综合一区二区| 国产精品99久久久| 国产精品对白交换视频| 91啪亚洲精品| 亚洲二区视频在线| 欧美一卡在线观看| 国产一区二区精品久久| 国产网站一区二区| 99久久伊人精品| 亚洲国产一区二区三区| 欧美一区二区三区系列电影| 麻豆久久一区二区| 欧美国产一区二区在线观看| 成人avav在线| 亚洲成人三级小说| 精品少妇一区二区三区视频免付费| 国产成人在线免费| 亚洲免费视频中文字幕| 欧美精品乱码久久久久久按摩| 精品制服美女久久| 欧美国产欧美亚州国产日韩mv天天看完整 | 在线看一区二区| 日本vs亚洲vs韩国一区三区二区| 久久在线观看免费| 一本到高清视频免费精品| 石原莉奈在线亚洲二区|