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

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

?? imagerx.m

?? 關于MIMO-OFDM的matlab和simulink仿真程序或模型(有OFDM的simulink仿真模型
?? 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一区二区三区免费野_久草精品视频
91国产精品成人| 国产欧美日韩在线| 国产精品成人免费| 日本在线不卡视频一二三区| eeuss鲁片一区二区三区| 日韩欧美一二三区| 亚洲二区在线视频| 国产成人鲁色资源国产91色综| 91精品国产欧美一区二区| 亚洲欧美偷拍卡通变态| 国产91综合一区在线观看| 777亚洲妇女| 丝袜美腿亚洲一区二区图片| 色婷婷久久久久swag精品| 中文字幕乱码久久午夜不卡 | 日韩一区二区免费电影| 一个色妞综合视频在线观看| 成人一区二区在线观看| 久久理论电影网| 国产麻豆精品theporn| 欧美大片日本大片免费观看| 日韩激情一二三区| 欧美久久婷婷综合色| 亚洲激情图片小说视频| 99热99精品| 亚洲欧美另类久久久精品2019| 成人av网站在线观看免费| 久久久亚洲精品石原莉奈| 久久99精品久久久久久| 日韩欧美国产成人一区二区| 高清久久久久久| 亚洲欧美在线视频观看| 96av麻豆蜜桃一区二区| 亚洲欧美日韩小说| 色婷婷激情久久| 亚洲国产中文字幕| 欧美男人的天堂一二区| 日韩国产一区二| 欧美mv和日韩mv的网站| 精品一区二区三区久久| 国产欧美日韩精品a在线观看| 国产精品香蕉一区二区三区| 国产精品久久久久久久久免费相片 | 精品粉嫩超白一线天av| 国产一区二区三区香蕉| 欧美国产日韩在线观看| 色猫猫国产区一区二在线视频| 亚洲综合色网站| 欧美日韩精品二区第二页| 日本伊人精品一区二区三区观看方式 | 久久精品免费看| www国产精品av| 成人v精品蜜桃久久一区| 中文字幕一区免费在线观看 | www.性欧美| 亚洲一区二区三区视频在线 | 一区二区三区四区中文字幕| 欧美人动与zoxxxx乱| 韩国欧美一区二区| 中文字幕在线视频一区| 欧美日韩国产乱码电影| 精品一区二区国语对白| 国产精品欧美经典| 欧美日韩视频在线观看一区二区三区 | 亚洲成a人片在线观看中文| 精品区一区二区| www.成人在线| 人人爽香蕉精品| 欧美国产精品v| 91麻豆精品国产91久久久久久久久 | 国产午夜精品久久久久久久 | 久久久久亚洲蜜桃| 91网站在线观看视频| 午夜av一区二区| 国产日产欧美精品一区二区三区| 一本久久精品一区二区| 蜜桃视频免费观看一区| 亚洲免费观看在线观看| 久久免费国产精品 | 色婷婷亚洲精品| 国产麻豆精品在线观看| 天使萌一区二区三区免费观看| 亚洲国产精品99久久久久久久久| 欧美日韩一区中文字幕| 国产ts人妖一区二区| 日韩黄色小视频| 亚洲一区精品在线| 国产欧美视频一区二区三区| 在线成人av网站| 色综合一个色综合亚洲| 国产成人av一区二区| 日韩高清不卡一区二区| 一区二区国产盗摄色噜噜| 国产精品美女久久久久av爽李琼| 精品国产乱码久久久久久久久| 在线免费视频一区二区| 成人的网站免费观看| 国产最新精品精品你懂的| 性感美女极品91精品| 亚洲伦理在线精品| 国产精品久久毛片a| 久久夜色精品一区| 日韩欧美激情一区| 7777精品伊人久久久大香线蕉超级流畅| 97国产一区二区| 色综合天天综合网国产成人综合天| 国产精品亚洲一区二区三区妖精| 奇米一区二区三区| 五月天欧美精品| 日韩精品一二区| 天天操天天综合网| 午夜精品视频一区| 亚洲v日本v欧美v久久精品| 亚洲精品久久久蜜桃| 亚洲欧洲日本在线| 亚洲日穴在线视频| 18欧美亚洲精品| 亚洲欧美日韩中文播放| 一区二区视频在线看| 一区二区三区自拍| 风间由美一区二区av101| 久久99久久久久| 国产尤物一区二区| 盗摄精品av一区二区三区| 白白色亚洲国产精品| 91在线观看下载| 欧美在线啊v一区| 欧美亚洲一区二区在线观看| 欧美美女黄视频| 欧美成人高清电影在线| 国产喷白浆一区二区三区| 椎名由奈av一区二区三区| 亚洲老妇xxxxxx| 热久久一区二区| 国产精品自拍三区| 色噜噜狠狠一区二区三区果冻| 欧美日韩国产影片| 欧美精品一区二区三区视频| 中文字幕av一区二区三区免费看 | 国产欧美精品一区二区三区四区 | 91精品福利在线| 欧美一区二区在线不卡| 久久久久久电影| 亚洲欧美视频一区| 日本不卡的三区四区五区| 激情小说欧美图片| 99国产精品视频免费观看| 欧美乱妇一区二区三区不卡视频| 久久久久久久久久久99999| 自拍偷拍亚洲综合| 美女一区二区视频| 99re热视频精品| 欧美一级高清片| 亚洲欧美一区二区三区国产精品 | 蜜臀av在线播放一区二区三区| 国产福利一区在线| 欧美美女一区二区| 国产日韩一级二级三级| 午夜视频一区二区三区| 不卡的av网站| 日韩欧美中文字幕精品| 亚洲女女做受ⅹxx高潮| 国产一区二区91| 欧美精品久久99久久在免费线| 国产精品全国免费观看高清| 秋霞成人午夜伦在线观看| 色综合久久天天| 久久嫩草精品久久久精品一| 亚洲成人av在线电影| jvid福利写真一区二区三区| 日韩一区二区三免费高清| 亚洲精品欧美综合四区| 国产91丝袜在线观看| 日韩欧美国产一区在线观看| 午夜精品久久久久影视| 色八戒一区二区三区| 久久先锋影音av鲁色资源| 日韩黄色免费网站| 欧洲视频一区二区| 亚洲欧美偷拍另类a∨色屁股| 国产馆精品极品| 精品国产乱码91久久久久久网站| 亚洲.国产.中文慕字在线| 色综合天天综合网国产成人综合天| 国产欧美一区二区在线观看| 国模少妇一区二区三区| 日韩精品中文字幕在线一区| 日韩av一区二区三区四区| 欧美美女bb生活片| 性做久久久久久免费观看| 欧美人伦禁忌dvd放荡欲情| 亚洲成人免费视| 在线亚洲高清视频| 亚洲一区在线电影| 欧美日韩综合一区| 日韩中文字幕av电影| 337p亚洲精品色噜噜| 性感美女久久精品| 日韩欧美国产三级| 色综合久久久久网|