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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? imagerx.m

?? 關(guān)于MIMO-OFDM的matlab和simulink仿真程序或模型有OFDM的simulink仿真模型,有mimo-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']);


?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产系列| 国产成人av影院| 免费人成在线不卡| 成人深夜在线观看| 欧美日韩三级在线| 精品国产髙清在线看国产毛片| 日韩免费观看2025年上映的电影 | 欧美一级片在线| 欧美国产精品一区二区三区| 久久精品在线观看| 亚洲一区在线观看免费| 日本少妇一区二区| 精品一区二区三区久久久| 国产精品一区在线观看乱码 | 久久精品综合网| 亚洲私人黄色宅男| 国产乱色国产精品免费视频| 欧美色区777第一页| 2欧美一区二区三区在线观看视频| 亚洲免费观看高清完整版在线观看 | 欧美一区二区日韩| 国产精品每日更新| 美国十次了思思久久精品导航| 欧美日韩一区不卡| 亚洲午夜久久久久中文字幕久| 99re这里只有精品6| 国产精品久久精品日日| 精品在线观看视频| 欧美成人午夜电影| 国产精品久久久久久久久免费相片| 蜜桃视频在线观看一区| 日韩欧美在线1卡| 久久国产福利国产秒拍| 欧美电影免费提供在线观看| 石原莉奈在线亚洲三区| 色成年激情久久综合| 亚洲愉拍自拍另类高清精品| 91视视频在线直接观看在线看网页在线看 | 91麻豆精品国产无毒不卡在线观看| 亚洲日韩欧美一区二区在线| k8久久久一区二区三区| 成人欧美一区二区三区| 91理论电影在线观看| 亚洲精品一二三四区| 欧美日韩一区视频| 另类综合日韩欧美亚洲| 精品电影一区二区三区| 不卡一区二区在线| 狠狠色丁香婷综合久久| 亚洲视频 欧洲视频| 日韩一区二区三区视频在线| 青青国产91久久久久久| 中文字幕不卡在线| 欧美性三三影院| 国产在线精品一区二区夜色 | www.日本不卡| 日本视频一区二区三区| 久久久综合激的五月天| 色狠狠色狠狠综合| 国产精品亚洲一区二区三区在线 | 欧美一区二区三区精品| 成人黄色一级视频| 日本网站在线观看一区二区三区 | 精品视频资源站| 国产精品一区二区免费不卡| 风流少妇一区二区| 久久精品国产99国产| 国产无人区一区二区三区| 欧美性生活久久| 美女尤物国产一区| 亚洲国产一区视频| 欧美极品少妇xxxxⅹ高跟鞋| 91行情网站电视在线观看高清版| 久久成人免费日本黄色| 亚洲精品免费在线| 亚洲国产视频直播| 亚洲国产欧美在线| 天天综合色天天综合| 亚洲国产美国国产综合一区二区| 樱桃视频在线观看一区| 中文字幕日本不卡| 国产欧美精品一区二区三区四区 | 91豆麻精品91久久久久久| 欧洲国内综合视频| 久久精品国产精品亚洲综合| 日韩精品每日更新| 国产在线视频精品一区| 91精品一区二区三区久久久久久 | 99久久er热在这里只有精品66| 免费观看在线综合| www亚洲一区| 亚洲精品国久久99热| 亚洲第一av色| 日韩欧美自拍偷拍| 91精品免费在线观看| 中文字幕乱码亚洲精品一区| 亚洲v中文字幕| 国产99久久久精品| 欧美性受xxxx黑人xyx| 欧美一区二区成人6969| 久久久影视传媒| 亚洲精品va在线观看| 日本午夜精品视频在线观看| 成人高清在线视频| 日韩美女视频一区二区在线观看| 亚洲欧洲国产日韩| 国产精品1区2区| 精品国产乱码久久久久久蜜臀 | 亚洲一区二区三区中文字幕在线| 日本午夜一区二区| 色悠久久久久综合欧美99| 久久婷婷一区二区三区| 日本中文在线一区| 欧美性一级生活| 最新高清无码专区| 成人自拍视频在线观看| 精品少妇一区二区三区| 丝袜美腿高跟呻吟高潮一区| 99久久久免费精品国产一区二区| 欧美刺激午夜性久久久久久久| 午夜电影网亚洲视频| 91久久香蕉国产日韩欧美9色| 国产欧美日产一区| 国产精品456露脸| 国产日韩欧美一区二区三区乱码 | 日韩中文字幕一区二区三区| 精品婷婷伊人一区三区三| 亚洲国产精品人人做人人爽| 7777女厕盗摄久久久| 蜜臀av在线播放一区二区三区 | 亚洲成人先锋电影| 91在线云播放| 亚洲欧美自拍偷拍| 国产精品一线二线三线精华| 久久影音资源网| 91麻豆视频网站| 综合久久综合久久| 欧美在线观看一二区| 日韩专区欧美专区| 一色屋精品亚洲香蕉网站| 欧美色区777第一页| 黄色日韩网站视频| 一二三区精品视频| 久久亚洲一区二区三区四区| 91在线观看污| 蜜桃一区二区三区四区| 日韩一区中文字幕| 欧美mv日韩mv国产网站| 欧美亚洲一区二区在线| 狠狠色综合播放一区二区| 亚洲综合成人在线| 国产三级精品三级| 欧美一级片免费看| 欧美探花视频资源| 99精品一区二区三区| 精品写真视频在线观看| 日韩精品电影在线| 亚洲一区二区三区影院| 亚洲人成亚洲人成在线观看图片| 26uuuu精品一区二区| 91精品国产综合久久精品性色| 成人高清视频在线| 国产xxx精品视频大全| 国产精品综合视频| 激情综合色综合久久| 日韩精品三区四区| 五月婷婷综合网| 午夜伊人狠狠久久| 日韩在线播放一区二区| 视频在线观看91| 日韩精品一区第一页| 五月激情综合婷婷| 免费亚洲电影在线| 国产老肥熟一区二区三区| 五月天激情小说综合| 免播放器亚洲一区| 精品一区二区三区不卡 | 日韩一区二区三区四区| 精品久久国产字幕高潮| 久久婷婷成人综合色| 久久综合一区二区| 国产精品丝袜91| 亚洲一区在线观看免费 | 一区二区三区免费在线观看| 五月天一区二区| 国产成人av在线影院| 欧美三区在线观看| 精品粉嫩超白一线天av| 中文字幕欧美日韩一区| 亚洲成人免费在线| 国产成人一区在线| 欧美日韩一区二区三区不卡| 亚洲精品在线免费观看视频| 中文字幕一区二区三中文字幕| 亚洲成人av福利| 91视视频在线观看入口直接观看www| 欧美高清www午色夜在线视频| 中文字幕亚洲区| 久久精品国产一区二区三区免费看| 成人av网站在线观看免费|