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

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

?? ofdmguifnsound.m

?? OFDM的仿真程序
?? M
字號(hào):
function OFDMguiFnSound(action)% Consolidates all of the GUI callbacks into one main function% Alan Brooks the man wrote thisstringArray = [...	% Slide 1	'Welcome to the Sound OFDM demo. This simulates QAM    '...	'and OFDM using a sound file as input to demonstrate   '...	'the advantages of using OFDM with a multipath         '...	'channel.                                              '...	'Choose the strength of multipath present in the       '...	'channel and the plot will show the current channels   '...	'frequency response.                                   ';...	% Slide 2	'Here is a frequency domain (FD) representation of the '...	'QAM data to be transmitted.                           '...	'Press any key to continue.                            '...	'                                                      '...	'                                                      '...	'                                                      '...	'                                                      ';...	% Slide 2b	'For QAM (single-carrier) transmission, this plot      '...	'shows the channel frequency response (black) and the  '...	'received data (light blue) overlayed on the original  '...	'data (blue). Note that the received data is slightly  '...	'distorted due to the fading channel caused by         '...	'multipath.                                            '...	'Press any key to continue.                            ';...	% Slide 2c	'Here is a frequency domain (FD) representation of the '...	'OFDM data to be transmitted.                          '...	'Press any key to continue.                            '...	'                                                      '...	'                                                      '...	'                                                      '...	'                                                      ';...	% Slide 2d	'For OFDM (multi-carrier) transmission, this plot      '...	'shows the channel (black) and received data (light    '...	'blue) overlayed on the original data (blue). Note     '...	'that the OFDM received data also exhibits multipath   '...	'distortion. Also, notice that the OFDM signal is      '...	'spread out over more bandwidth than QAM since OFDM    '...	'uses many carrier frequencies.                        ';...	% Slide 3	'Here are the final plots of the recovered sound files '...	'along with the Bit Error Rate (BER) for OFDM and QAM. '...	'Click any of the 3 buttons to hear these sounds.      '...	'Since OFDM handles multipath better, the sound is     '...	'less distorted.                                       '...	'The Long Sounds demonstrate longer examples that have '...	'already been processed offline.                       '];	switch(action)	case 'next'		%---------------------------------------		textHnd1=findobj('Tag','StaticTextFeedback');		nextHnd1=findobj('Tag','PushbuttonNext'); % handler for the Next button		% axis handlers			axisHnd1=findobj('Tag','Axes1');	% main			axisHnd2=findobj('Tag','AxesOriginal');	% original			axisHnd3=findobj('Tag','AxesQAM');	% QAM			axisHnd4=findobj('Tag','AxesOFDM');	% OFDM		% multipath handlers			textHnd2=findobj('Tag','StaticTextMultipath');			popupHnd1=findobj('Tag','PopupMenuMultipath');		% Generated Sounds handlers			textHnd3=findobj('Tag','StaticTextGenSounds');			OriginalHnd1=findobj('Tag','PushbuttonOriginal');			QAMHnd1=findobj('Tag','PushbuttonQAM');			OFDMHnd1=findobj('Tag','PushbuttonOFDM');		% Long Sounds handlers			textHnd4=findobj('Tag','StaticTextLongSounds');			OriginalLongHnd1=findobj('Tag','PushbuttonOriginalLong');			QAMLongHnd1=findobj('Tag','PushbuttonQAMLong');			OFDMLongHnd1=findobj('Tag','PushbuttonOFDMLong');		% BER handlers			textHnd5=findobj('Tag','StaticTextBER1'); % label			textHnd6=findobj('Tag','StaticTextBER2'); % label			textHnd7=findobj('Tag','StaticTextBERQAM'); % OFDM BER field			textHnd8=findobj('Tag','StaticTextBEROFDM'); % QAM BER field		global COUNTER		if isempty(COUNTER)			COUNTER = 0;	% initialize COUNTER if doesn't exist		end		COUNTER = COUNTER + 1;		[r c]=size(stringArray);		if COUNTER > r			COUNTER = 0;         close(gcf)
         % SoundGUI			SoundGUI_win	% windows only		else			set(textHnd1,'String',stringArray(COUNTER,:))			switch(COUNTER)				case 1					% disp('Slide 1')					% Show/Hide the GUI						set(nextHnd1,'String','Next')						% show multipath controls							set(textHnd2,'Visible','on')							set(popupHnd1,'Visible','on')						% enable multipath controls							set(textHnd2,'Enable','on')							set(popupHnd1,'Enable','on')						% show main axis							set(axisHnd1,'Visible','on'),axes(axisHnd1)						% hide other axis's							set(axisHnd2,'Visible','off')								set(axisHnd3,'Visible','off')							set(axisHnd4,'Visible','off')						% hide generated sounds stuff							set(textHnd3,'Visible','off')								set(OriginalHnd1,'Visible','off')							set(QAMHnd1,'Visible','off')							set(OFDMHnd1,'Visible','off')						% hide long sounds stuff							set(textHnd4,'Visible','off')								set(OriginalLongHnd1,'Visible','off')							set(QAMLongHnd1,'Visible','off')							set(OFDMLongHnd1,'Visible','off')						% hide the BER displays							set(textHnd5,'Visible','off')							set(textHnd6,'Visible','off')							set(textHnd7,'Visible','off')							set(textHnd8,'Visible','off')					set(popupHnd1,'Value',1)	% no channel by default					% default plot					plot(0:.05:.5,zeros(1,11)),axis([0 0.5 -12 6]),title('Channel Magnitude Response')					xlabel('Digital Frequency'),ylabel('Magnitude (dB)')								case {2, 3, 4, 5}					% disp('Slide 2')					% disble multipath controls						set(textHnd2,'Enable','off')						set(popupHnd1,'Enable','off')					setupSoundGUI	% sets up the Sound GUI variables					set(textHnd1,'String','QAM Simulation... Please Wait')					QAM					set(textHnd1,'String',stringArray(COUNTER,:))					fft_temp = abs(fft(QAM_tx_data));					fft_temp = fft_temp(1:floor(0.5*length(fft_temp))); % truncate (+ spectrum)					dig_x_axis = (1:length(fft_temp)) / (2*length(fft_temp));					plot(dig_x_axis, fft_temp)					title('FFT of Transmitted QAM')					% calculate the BER and store for slide 6						global BER_QAM_TEMP;						binary_err_bits_QAM = 0;						for i = 1:length(data_in)							err = abs(data_in(i)-QAM_data_out(i));							if err > 0								binary_err_bits_QAM = binary_err_bits_QAM + 1;							end						end						BER_QAM_TEMP = 100 * binary_err_bits_QAM/data_length;					COUNTER = COUNTER + 1;					pause										% disp('Slide 2b')					set(textHnd1,'String',stringArray(COUNTER,:))					hold on						% QAM Plotting						fft_temp = abs(fft(QAM_rx_data));						fft_temp = fft_temp(1:floor(0.5*length(fft_temp))); % truncate						plot(dig_x_axis, fft_temp,'c'),title(' ')						% channel display						if channel_on == 1							ComputeChannelGUI							size_mag=max(mag)-min(mag);	% for scaled channel plot							plot(W/(2*pi),(0.5*max(fft_temp)/size_mag)*(mag + abs(min(mag))) + 0.5*max(fft_temp),'k')						end					hold off					COUNTER = COUNTER + 1;					pause										% disp('Slide 2c')					set(textHnd1,'String','OFDM Simulation... Please Wait')					OFDM					set(textHnd1,'String',stringArray(COUNTER,:))					fft_temp = abs(fft(xmit));					fft_temp = fft_temp(1:floor(0.5*length(fft_temp))); % truncate					dig_x_axis = (1:length(fft_temp)) / (2*length(fft_temp));					plot(dig_x_axis, fft_temp)					title('FFT of Transmitted OFDM')					% calculate the BER and store for slide 6						global BER_OFDM_TEMP;						binary_err_bits_OFDM = 0;						for i = 1:length(data_in)							err = abs(data_in(i)-output(i));							if err > 0								binary_err_bits_OFDM = binary_err_bits_OFDM +1;							end						end						BER_OFDM_TEMP = 100 * binary_err_bits_OFDM/data_length;					COUNTER = COUNTER + 1;					pause										% disp('Slide 2d')					set(textHnd1,'String',stringArray(COUNTER,:))					hold on						% OFDM Plotting						fft_temp = abs(fft(recv));						fft_temp = fft_temp(1:floor(0.5*length(fft_temp))); % truncate						plot(dig_x_axis, fft_temp,'c'),title(' ')						% channel display 						if channel_on == 1							plot(W/(2*pi),(0.5*max(fft_temp)/size_mag)*(mag + abs(min(mag))) + 0.5*max(fft_temp),'k')						end					hold off								case 6					% disp('Slide 3')					setupSoundGUI					% hide main axis						plot(0)	% clear the plot						axis off						% set(axisHnd1,'Visible','off')					% show other axis's						set(axisHnd2,'Visible','on')							set(axisHnd3,'Visible','on')						set(axisHnd4,'Visible','on')					% hide multipath controls						set(textHnd2,'Visible','off')						set(popupHnd1,'Visible','off')					% show generated sound buttons						set(textHnd3,'Visible','on')							set(OriginalHnd1,'Visible','on')						set(QAMHnd1,'Visible','on')						set(OFDMHnd1,'Visible','on')					% show long sounds stuff						set(textHnd4,'Visible','on')							set(OriginalLongHnd1,'Visible','on')						set(QAMLongHnd1,'Visible','on')						set(OFDMLongHnd1,'Visible','on')					% show the BER displays						set(textHnd5,'Visible','on')						set(textHnd6,'Visible','on')						set(textHnd7,'Visible','on') % QAM						set(textHnd8,'Visible','on') % OFDM					% Display the BERs					global BER_QAM_TEMP;					global BER_OFDM_TEMP;					set(textHnd7,'String',strcat(num2str(BER_QAM_TEMP,3),' %'))					set(textHnd8,'String',strcat(num2str(BER_OFDM_TEMP,3),' %'))					clear global BER_QAM_TEMP;	% clean up the globals					clear global BER_OFDM_TEMP;					% Plot the Sounds					%  Note: axes(handle) sets to plot on the handle axis					axes(axisHnd2)					plot(wavread(file_name)),title('Original sound')					axes(axisHnd3)					plot(wavread('QAM_out.wav')),title('QAM sound')					axes(axisHnd4)					plot(wavread('OFDM_out.wav')),title('OFDM sound')					set(nextHnd1,'String','Start Over')	% repeat if desired								otherwise					disp('error')					COUNTER = 0;			end		end						case 'mp_channel'	%-----------------------------------		ComputeChannelGUI		if noChannel ~= 1			% large or small case			plot(W/(2*pi),mag),axis([0 0.5 -12 6]),title('Channel Magnitude Response')			xlabel('Digital Frequency'),ylabel('Magnitude (dB)')		else			% none case			plot(0:.05:.5,zeros(1,11)),axis([0 0.5 -12 6]),title('Channel Magnitude Response')			xlabel('Digital Frequency'),ylabel('Magnitude (dB)')			end			case 'close'	%---------------------------------------		clear global COUNTER		close(gcbf)			case 'PlayOriginal'	%-----------------------------------		sound(wavread('shortest.wav'),11025)			case 'PlayQAM'	%---------------------------------------		sound(wavread('QAM_out.wav'),11025)			case 'PlayOFDM'	%---------------------------------------		sound(wavread('OFDM_out.wav'),11025)		case 'PlayOriginalLong'	%-----------------------------------		sound(wavread('Long.wav'),11025)			case 'PlayQAMLong'	%---------------------------------------		sound(wavread('QAM_Long.wav'),11025)			case 'PlayOFDMLong'	%---------------------------------------		sound(wavread('OFDM_Long.wav'),11025)		case 'figure'	%---------------------------------------		% this is called whenever the figure is first created -or NOT???% 		textHnd1=findobj('Tag','StaticTextFeedback');% 		axisHnd1=findobj('Tag','Axes1');% 		set(textHnd1,'String','Sound OFDM Demo') % default text message% 		set(axisHnd1,'Visible','off')	% hide Axis to beginend

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产aⅴ一区二区| 精品精品国产高清一毛片一天堂| 视频一区视频二区中文字幕| 国产亚洲精品久| 欧美性猛交xxxx乱大交退制版 | 在线电影一区二区三区| 激情av综合网| 天堂va蜜桃一区二区三区| 中文字幕在线一区二区三区| 日韩欧美在线综合网| 欧美性色黄大片| 成人国产精品视频| 久久99精品久久久久久动态图| 夜夜爽夜夜爽精品视频| 国产精品黄色在线观看 | 亚洲精品亚洲人成人网在线播放| 久久久久久日产精品| 91精品国产91久久久久久一区二区 | 欧美一级欧美三级在线观看| 91丨国产丨九色丨pron| 粉嫩欧美一区二区三区高清影视| 美女网站一区二区| 日韩精品高清不卡| 午夜精品久久久久久久久久久 | 亚洲国产综合人成综合网站| 中文字幕一区视频| 欧美高清一级片在线观看| 久久久亚洲精华液精华液精华液| 911精品国产一区二区在线| 欧美视频精品在线| 91成人免费电影| 一本久道中文字幕精品亚洲嫩| 波多野结衣精品在线| 丁香天五香天堂综合| 国产传媒久久文化传媒| 激情成人午夜视频| 国产精品综合二区| 国产一区二区三区日韩| 黑人巨大精品欧美黑白配亚洲| 奇米亚洲午夜久久精品| 青青草国产成人av片免费| 喷白浆一区二区| 麻豆91精品视频| 激情综合色播激情啊| 国产一区二区在线视频| 国产毛片精品一区| 成人在线一区二区三区| 91啪亚洲精品| 在线亚洲精品福利网址导航| 欧美亚洲愉拍一区二区| 欧美精品在线观看一区二区| 7799精品视频| 欧美精品一区视频| 国产精品久久一级| 一区二区三区在线观看网站| 亚洲第一av色| 蜜臀av一级做a爰片久久| 国产乱码精品一品二品| 成人精品在线视频观看| 在线视频中文字幕一区二区| 欧美日韩高清不卡| 欧美mv日韩mv国产网站| 国产日韩欧美高清在线| 伊人婷婷欧美激情| 免费亚洲电影在线| 国产999精品久久久久久绿帽| av在线免费不卡| 欧美日韩国产影片| 久久精子c满五个校花| 国产精品家庭影院| 日韩国产在线一| 国产成人自拍网| 欧美在线一区二区| 精品国产乱子伦一区| 中文字幕在线一区| 爽好久久久欧美精品| 国产精品1区2区| 在线亚洲一区二区| 精品国产精品网麻豆系列| 亚洲色图清纯唯美| 日本成人在线网站| 成人av免费观看| 91超碰这里只有精品国产| 国产精品视频一二三区| 日韩成人av影视| jlzzjlzz亚洲日本少妇| 在线不卡中文字幕| 国产精品久久久久久久久晋中 | 亚洲成人激情自拍| 国产寡妇亲子伦一区二区| 欧美日韩在线综合| 欧美国产成人在线| 久久精品国产亚洲高清剧情介绍| 9i看片成人免费高清| 精品国产乱子伦一区| 午夜成人免费电影| 成人动漫一区二区在线| 91精品在线一区二区| 日韩美女视频一区| 久久99国产精品久久| 欧美中文字幕久久| 国产精品欧美久久久久无广告| 天堂va蜜桃一区二区三区漫画版| caoporn国产一区二区| 欧美大片在线观看| 亚洲综合在线观看视频| 国产精品一色哟哟哟| 日韩一区二区三区四区| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲九九爱视频| 国产.欧美.日韩| 精品国产免费人成电影在线观看四季 | 中文字幕免费不卡| 韩国av一区二区三区四区| 欧美剧在线免费观看网站| 亚洲人午夜精品天堂一二香蕉| 国精品**一区二区三区在线蜜桃| 欧美日高清视频| 玉足女爽爽91| 99久久国产综合精品女不卡| 中文字幕巨乱亚洲| 国产999精品久久久久久绿帽| 欧美xxx久久| 麻豆成人久久精品二区三区红| 欧美日韩国产精选| 五月综合激情婷婷六月色窝| 91久久免费观看| 亚洲美女电影在线| 91久久线看在观草草青青| 一区二区三区中文在线| 色噜噜狠狠色综合中国| 亚洲美女区一区| 日本高清不卡视频| 亚洲午夜在线视频| 欧美午夜电影网| 亚洲一区二三区| 欧美三级中文字| 水蜜桃久久夜色精品一区的特点| 在线不卡免费av| 日本不卡一二三| 日韩午夜精品视频| 国产一区二区精品久久91| 国产亚洲一区二区在线观看| 粉嫩一区二区三区性色av| 国产精品麻豆网站| 色综合 综合色| 亚洲成av人片| 日韩你懂的在线播放| 国产在线视视频有精品| 国产精品网站在线| 色综合欧美在线| 午夜激情久久久| 欧美va在线播放| 国产乱色国产精品免费视频| 亚洲国产成人自拍| 色综合天天综合网天天狠天天| 亚洲成人一区二区在线观看| 欧美一级二级三级蜜桃| 国产一区二区调教| 亚洲人成人一区二区在线观看 | 欧美亚洲综合在线| 日本欧美久久久久免费播放网| 久久久久国产免费免费| 91丨porny丨首页| 午夜欧美视频在线观看| 久久女同精品一区二区| 91社区在线播放| 奇米在线7777在线精品| 国产精品每日更新在线播放网址| 色欲综合视频天天天| 久久精品国产亚洲a| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产91丝袜在线18| 亚洲乱码一区二区三区在线观看| 91精品久久久久久久91蜜桃| 国产黄人亚洲片| 亚洲r级在线视频| 国产亚洲精品免费| 欧美伦理影视网| 国产成人h网站| 午夜亚洲国产au精品一区二区| 久久久久久一级片| 欧美视频在线一区| 国产成人亚洲综合a∨婷婷| 亚洲一级在线观看| 久久精品日产第一区二区三区高清版 | 亚洲一区二区三区国产| 久久一日本道色综合| 日本电影欧美片| 国产伦精品一区二区三区视频青涩 | 日韩精品一区二| 色欧美日韩亚洲| 国产成人精品免费视频网站| 日韩中文字幕不卡| 国产精品久久久久永久免费观看 | 国产成人精品免费视频网站| 日韩精品一级中文字幕精品视频免费观看 | 亚洲精品国产无套在线观| 久久女同互慰一区二区三区| 欧美日韩亚洲综合|