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

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

?? imagerx.m

?? ofdm系統MATLAB仿真源代碼。 ofdm系統MATLAB仿真源代碼。
?? 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 = wavread(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;
switch guardtype
case 1
	%Zeroed guard period
	FrameGap = ifftsize+guardtime*2;
	zerotime = guardtime;
case 2
	FrameGap = ifftsize+guardtime;
	zerotime = 0;
case 3
	FrameGap = ifftsize+3*guardtime/2;
	zerotime = guardtime/2;
end
if SymbPerFrame ~= 0,
	SampPerFrame = (SymbPerFrame+1)*(ifftsize+guardtime);

	
	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/(2^(OutWordSize)+1),fs,OutWordSize,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一区二区三区免费野_久草精品视频
日韩精品一区第一页| 欧美成人性战久久| 一区二区三区 在线观看视频| 99精品桃花视频在线观看| 亚洲色图视频网| 欧洲一区在线观看| 麻豆一区二区三| 欧美激情一区三区| 在线观看成人小视频| 日日摸夜夜添夜夜添亚洲女人| 欧美刺激午夜性久久久久久久| 国产一区二区在线视频| 中文字幕日韩欧美一区二区三区| 色综合咪咪久久| 麻豆一区二区99久久久久| 久久久不卡网国产精品二区| 91碰在线视频| 免费看欧美美女黄的网站| 久久网站热最新地址| 91在线观看成人| 日本特黄久久久高潮| 欧美高清在线视频| 日韩精品1区2区3区| 成人午夜在线视频| 亚洲超碰精品一区二区| 久久久久久久久久电影| 在线观看网站黄不卡| 久久99久久精品欧美| 亚洲欧美视频在线观看| 精品久久久久一区二区国产| 91视频在线观看| 国产中文一区二区三区| 亚洲综合在线电影| 久久久久久亚洲综合影院红桃| 一本大道久久a久久综合| 国产自产高清不卡| 亚洲国产wwwccc36天堂| 中文字幕乱码日本亚洲一区二区| 欧美一区二区视频免费观看| 国产黄人亚洲片| 久久精品国产亚洲5555| 亚洲在线免费播放| 成人激情开心网| 日本大香伊一区二区三区| 国内精品在线播放| 久久免费精品国产久精品久久久久| 欧美日韩电影一区| 国产91清纯白嫩初高中在线观看| 天天综合网 天天综合色| ...中文天堂在线一区| 久久久亚洲综合| 欧美一级日韩免费不卡| 欧美在线观看一二区| 99vv1com这只有精品| 国内精品伊人久久久久影院对白| 日韩精品一级二级| 亚洲国产精品一区二区久久| 不卡的av电影| 亚洲小少妇裸体bbw| 中文字幕在线观看一区| 国产视频视频一区| 精品日韩一区二区三区免费视频| 91精品久久久久久久99蜜桃| 欧美性生活大片视频| 色成年激情久久综合| 99久久婷婷国产综合精品| 岛国精品一区二区| 成人精品国产福利| 99视频有精品| 91在线精品一区二区| 亚洲激情第一区| 欧美美女一区二区三区| 色婷婷亚洲综合| 91精彩视频在线观看| 色琪琪一区二区三区亚洲区| 色婷婷久久久亚洲一区二区三区 | 91精品国产综合久久精品麻豆| 99国产精品一区| jlzzjlzz国产精品久久| k8久久久一区二区三区| 99久久99久久免费精品蜜臀| 99国产精品久久久久久久久久| 97久久久精品综合88久久| 91丨porny丨首页| av不卡在线播放| 一本大道综合伊人精品热热 | 三级精品在线观看| 一区二区在线电影| 国产精品久久久久一区二区三区共| 国产性天天综合网| 国产精品二区一区二区aⅴ污介绍| 国产精品电影一区二区| 一区二区三区国产精华| 调教+趴+乳夹+国产+精品| 日韩色视频在线观看| 欧美喷水一区二区| 精品国精品国产| 国产精品美女一区二区在线观看| 亚洲人成在线观看一区二区| 亚洲国产欧美日韩另类综合| 免费在线看一区| 丁香婷婷深情五月亚洲| 在线免费观看成人短视频| 91麻豆精品国产91久久久使用方法 | 一本大道久久a久久精品综合| 欧美日韩不卡在线| 久久精品人人做人人爽97| 一区二区三区欧美日| 国内久久精品视频| 色88888久久久久久影院野外| 欧美二区三区91| 国产精品久久久久一区| 丝袜美腿亚洲色图| 成人午夜精品在线| 在线成人免费观看| 日韩一区日韩二区| 乱一区二区av| 一本久久综合亚洲鲁鲁五月天| 欧美一区二区播放| 亚洲男人的天堂在线观看| 激情国产一区二区 | 国产成人在线色| 欧美日韩一区不卡| 国产精品视频线看| 久久国产麻豆精品| 91久久国产综合久久| 久久久国产精华| 天堂影院一区二区| 色综合天天做天天爱| 精品粉嫩aⅴ一区二区三区四区| 亚洲欧美另类在线| 成人精品视频一区二区三区| 蜜桃视频一区二区| 欧美aaa在线| 在线观看免费亚洲| 国产精品人妖ts系列视频| 麻豆久久久久久久| 欧美电影一区二区| 亚洲制服丝袜av| 成人福利电影精品一区二区在线观看| 日韩一区二区三区视频在线观看| 一区二区三区在线免费| 成人免费黄色在线| 国产午夜三级一区二区三| 天堂久久久久va久久久久| 在线免费观看日本一区| 中文字幕一区二区在线观看| 国产乱国产乱300精品| 日韩视频一区二区三区在线播放| 一区二区三区在线观看国产| 国产一本一道久久香蕉| 精品国产乱码久久久久久闺蜜| 天天影视涩香欲综合网| 在线一区二区三区四区| 亚洲精品美国一| 成人成人成人在线视频| 国产精品久久久久久久岛一牛影视| 韩国女主播一区二区三区| 日韩欧美一级二级三级| 麻豆精品视频在线| 精品国精品自拍自在线| 久久国产生活片100| 日韩免费观看2025年上映的电影| 日韩影视精彩在线| 日韩一区二区免费在线电影 | 欧美极品美女视频| 国产99久久久国产精品免费看| 久久综合av免费| 粉嫩av亚洲一区二区图片| 国产日韩成人精品| 不卡一区中文字幕| 亚洲男人的天堂在线观看| 欧美亚洲国产bt| 久久综合久久鬼色| 亚洲一区自拍偷拍| 7777精品伊人久久久大香线蕉 | 欧美日韩一区 二区 三区 久久精品| 亚洲男同性恋视频| 欧美日本一区二区在线观看| 日本免费在线视频不卡一不卡二 | 91精品国产色综合久久久蜜香臀| 奇米综合一区二区三区精品视频| 精品噜噜噜噜久久久久久久久试看 | 秋霞国产午夜精品免费视频 | 欧美电影免费提供在线观看| 中文字幕日韩精品一区| 一本久久综合亚洲鲁鲁五月天| 亚洲国产精品一区二区www| 欧美一级久久久久久久大片| 国产麻豆精品一区二区| 国产精品福利一区二区| 欧美日韩国产大片| 国内成+人亚洲+欧美+综合在线| 亚洲国产精品精华液2区45| 色综合久久综合| 久久99精品国产| 亚洲欧美二区三区| 日韩精品一区二区在线| jlzzjlzz亚洲日本少妇| 日韩激情av在线|