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

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

?? imagerx.m

?? 國外大學 OFDM 仿真系統(tǒng) 很經(jīng)典 是同學從國外帶回來的
?? 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人片在线| 韩国女主播成人在线观看| 床上的激情91.| 91精品国产欧美日韩| 国产欧美日韩中文久久| 香蕉久久夜色精品国产使用方法| 免费在线看成人av| 成人av手机在线观看| 欧美亚洲国产一区二区三区| 2020国产精品| 性久久久久久久| 99精品视频一区二区| 日韩欧美在线123| 一区二区三区中文字幕精品精品 | 亚洲成在人线免费| 精品一区二区久久| 91麻豆精品一区二区三区| 在线中文字幕一区二区| 高清成人在线观看| 乱中年女人伦av一区二区| 日本午夜一区二区| 成a人片国产精品| 欧美一区二区三区不卡| 国产精品网站在线观看| 精品午夜久久福利影院| 在线看国产日韩| 国产偷v国产偷v亚洲高清| 亚洲二区视频在线| 欧洲生活片亚洲生活在线观看| 欧美一区二区三区电影| 一个色综合av| 色综合久久中文综合久久牛| 久久一区二区三区四区| 婷婷六月综合网| 91首页免费视频| 专区另类欧美日韩| 国产精品亚洲午夜一区二区三区| 337p亚洲精品色噜噜噜| 午夜电影一区二区三区| 91精品国产综合久久久久久久| 亚洲综合色婷婷| 欧美视频一区在线观看| 一区二区三区在线观看网站| 丁香啪啪综合成人亚洲小说| 国产精品美日韩| 国产成人在线看| 26uuu国产电影一区二区| 久久精品国产99国产精品| 精品99999| 99re这里都是精品| 偷拍与自拍一区| 国产女主播一区| 日本乱码高清不卡字幕| 日韩中文字幕一区二区三区| 欧美精品123区| 韩国精品免费视频| 亚洲免费av网站| 91麻豆精品国产自产在线| 理论电影国产精品| 亚洲精品成人少妇| 亚洲精品在线观看网站| 日本福利一区二区| 激情文学综合网| 免费人成黄页网站在线一区二区| 国产三级精品视频| 精品国产网站在线观看| 欧美亚洲高清一区二区三区不卡| 亚洲国产日产av| 夜夜爽夜夜爽精品视频| 国产欧美视频一区二区| 在线播放视频一区| 91麻豆.com| 国产高清亚洲一区| 国产剧情av麻豆香蕉精品| 亚洲va韩国va欧美va| 一区二区三区日韩在线观看| 中文字幕av一区二区三区高 | 91精品国产91综合久久蜜臀| 成人综合婷婷国产精品久久| 国产精品一区二区91| 麻豆国产91在线播放| 亚洲午夜在线电影| 亚洲三级久久久| 国产精品视频看| 中文字幕乱码日本亚洲一区二区| 日韩欧美在线一区二区三区| 欧美肥妇毛茸茸| 久久综合色8888| 久久精品人人做人人爽97| 国产天堂亚洲国产碰碰| 亚洲精品国产第一综合99久久| 亚洲男人的天堂在线观看| 亚洲成国产人片在线观看| 奇米色777欧美一区二区| 国产一区二区91| 福利一区二区在线| 欧美日韩高清不卡| 国产精品传媒在线| 蜜臀av性久久久久蜜臀aⅴ流畅| 精品一区二区三区不卡| 99久久精品国产毛片| 91精品国产综合久久久久久| 中文字幕一区二区三区四区| 肉丝袜脚交视频一区二区| 9色porny自拍视频一区二区| 欧美一区二区三区公司| 亚洲精品成人少妇| 99天天综合性| 日本一二三不卡| 国产麻豆午夜三级精品| 欧美一区国产二区| 日韩中文字幕亚洲一区二区va在线| 国产98色在线|日韩| 精品久久一区二区| 久久精品国产在热久久| 在线一区二区三区四区五区| 亚洲视频1区2区| 色呦呦国产精品| 亚洲乱码一区二区三区在线观看| 亚洲免费av观看| 日本电影亚洲天堂一区| 亚洲精品视频一区| 色综合一个色综合| 亚洲第一主播视频| 欧美日韩国产综合一区二区| 亚洲激情网站免费观看| 欧美午夜电影在线播放| 日日摸夜夜添夜夜添国产精品| 欧美精品在线观看播放| 久久精品国产一区二区三| 久久看人人爽人人| 97精品超碰一区二区三区| 伊人婷婷欧美激情| 日韩一区二区在线观看视频| 美女视频第一区二区三区免费观看网站| 9191精品国产综合久久久久久| 美女国产一区二区| 国产精品国产三级国产普通话99| 国产不卡在线一区| 日韩va欧美va亚洲va久久| 精品国内二区三区| 91啪亚洲精品| 精品中文av资源站在线观看| 欧美国产视频在线| 在线免费观看不卡av| 国产一区 二区 三区一级| 亚洲国产精品人人做人人爽| 久久久久久久综合日本| 7777精品伊人久久久大香线蕉| 国产精品亚洲一区二区三区在线| 亚洲大片在线观看| 一区二区三区精品| 国产精品乱人伦中文| 日韩精品在线网站| 欧美精品在线视频| 欧美揉bbbbb揉bbbbb| 色婷婷综合久色| 不卡一区二区三区四区| 成人性生交大片免费看在线播放| 免费国产亚洲视频| 麻豆91在线看| 久久超级碰视频| 久久不见久久见免费视频1| 亚洲丶国产丶欧美一区二区三区| 中文字幕在线观看一区| 亚洲同性同志一二三专区| 国产精品色在线| 亚洲欧美一区二区三区极速播放| 中文字幕国产一区| 中文字幕一区二区三区乱码在线| 中文字幕一区二区三中文字幕| 精品久久国产老人久久综合| 日韩免费一区二区| 国产精品色在线观看| 亚洲女同女同女同女同女同69| 中文字幕制服丝袜一区二区三区| 日韩美女精品在线| 日韩精品电影一区亚洲| 极品尤物av久久免费看| 粉嫩高潮美女一区二区三区| 9色porny自拍视频一区二区| 欧美日韩国产高清一区| 中文字幕一区二区三| 日韩激情一二三区| 成人av在线资源网站| 5566中文字幕一区二区电影| 国产亚洲自拍一区| 亚洲欧美另类综合偷拍| 久久aⅴ国产欧美74aaa| 99v久久综合狠狠综合久久| 欧美一区二区二区| 亚洲一区二区在线观看视频| 国产大陆亚洲精品国产| 制服丝袜日韩国产| 亚洲午夜久久久久久久久电影网|