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

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

?? ofdmguifnsound.m

?? ofdm的基本開發matlab源代碼
?? M
字號:
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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成年人影院| 亚洲午夜免费福利视频| 欧美电影在哪看比较好| 在线观看日韩国产| 色偷偷一区二区三区| 97精品电影院| 在线观看亚洲a| 在线精品视频免费观看| caoporn国产精品| voyeur盗摄精品| 99久久精品国产一区二区三区 | 精品国产乱码久久久久久久 | 国产三级欧美三级| 久久久久久久免费视频了| 亚洲精品在线观看网站| 久久人人97超碰com| 国产精品日产欧美久久久久| 中文字幕视频一区| 亚洲柠檬福利资源导航| 亚洲欧美综合色| 亚洲在线成人精品| 美女一区二区三区| 国产在线播精品第三| 国产精品亚洲视频| 91豆麻精品91久久久久久| 91麻豆精品国产91久久久久| 久久精品日产第一区二区三区高清版| 国产农村妇女精品| 亚洲高清免费视频| 国内成人自拍视频| 色一情一乱一乱一91av| 69堂精品视频| 国产精品美女久久福利网站| 亚洲国产精品一区二区www在线| 美女mm1313爽爽久久久蜜臀| 成人av网站大全| 欧美电影在线免费观看| 国产清纯白嫩初高生在线观看91| 亚洲黄色在线视频| 美女尤物国产一区| 95精品视频在线| 欧美大片日本大片免费观看| 亚洲精品成人少妇| 久久国产精品99久久久久久老狼| 91麻豆国产福利在线观看| 日韩一区二区不卡| 亚洲精选视频免费看| 国内精品伊人久久久久av影院 | 欧美一区二区三区喷汁尤物| 欧美激情一区二区三区全黄| 日本成人在线电影网| 91免费视频观看| 国产调教视频一区| 九九精品视频在线看| 欧美在线观看你懂的| 中文无字幕一区二区三区 | 1024成人网| 国产精品69久久久久水密桃| 日韩视频不卡中文| 亚洲一区在线观看视频| 91色在线porny| 国产三区在线成人av| 麻豆精品新av中文字幕| 欧美性受xxxx黑人xyx性爽| 国产精品网站一区| 国产精品一区二区三区乱码| 精品国产百合女同互慰| 偷拍亚洲欧洲综合| 欧美亚洲国产bt| 一区二区三区在线观看视频 | 一区二区三区四区高清精品免费观看 | 国产精品18久久久久久久久| 日韩一级视频免费观看在线| 日韩和欧美的一区| 在线成人午夜影院| 五月激情综合婷婷| 欧美另类变人与禽xxxxx| 亚洲大型综合色站| 欧美色男人天堂| 视频一区视频二区中文字幕| 欧美特级限制片免费在线观看| 国产精品久久久久久久久久免费看 | 亚欧色一区w666天堂| 欧美偷拍一区二区| 亚洲18女电影在线观看| 欧美久久久久中文字幕| 日韩在线卡一卡二| 日韩欧美国产一区二区在线播放| 亚洲地区一二三色| 欧美一二三区在线| 国产一区在线观看视频| 久久精品视频免费观看| 99re热视频精品| 亚洲制服欧美中文字幕中文字幕| 欧美日韩一级片在线观看| 日韩精品免费专区| 亚洲精品在线三区| heyzo一本久久综合| 一二三区精品福利视频| 欧美福利电影网| 国产精品99久久久久久似苏梦涵| 国产精品理论片| 欧美日韩三级一区二区| 精品一区二区成人精品| 国产精品乱人伦一区二区| 欧美系列日韩一区| 黄色日韩三级电影| **欧美大码日韩| 日韩一区和二区| 91在线免费看| 免费在线观看视频一区| 日本一区二区成人| 91精选在线观看| 97久久超碰国产精品| 男人的j进女人的j一区| 中文字幕亚洲一区二区va在线| 91精品国产aⅴ一区二区| 国产成人精品午夜视频免费| 五月天网站亚洲| 国产精品久久久久国产精品日日| 欧美另类高清zo欧美| 91丝袜美腿高跟国产极品老师| 麻豆精品视频在线观看| 亚洲伦理在线免费看| 日韩免费观看高清完整版| 在线视频一区二区三| 国产在线一区二区综合免费视频| 亚洲一区二区三区不卡国产欧美 | 欧美手机在线视频| 亚洲国产裸拍裸体视频在线观看乱了| 日韩欧美一区中文| 在线国产电影不卡| 成人国产在线观看| 国产麻豆精品久久一二三| 亚洲二区在线观看| 亚洲精品视频在线| 国产精品美女久久久久高潮| 日韩精品最新网址| 欧美日韩一区不卡| 91视频在线观看| 成人精品免费视频| 91麻豆免费视频| 成人黄色电影在线| 国产美女主播视频一区| 久草热8精品视频在线观看| 五月天一区二区三区| 亚洲午夜久久久| 亚洲一区在线观看免费观看电影高清 | 国产欧美日产一区| 欧美精品一区二区不卡| 精品日韩一区二区三区| 欧美一卡二卡在线| 精品少妇一区二区三区日产乱码 | 欧美一区二区三区在线电影| 欧美日韩在线播放三区| 欧美中文字幕久久| 欧美日韩综合不卡| 欧美日韩aaaaaa| 日韩一区二区电影网| ww亚洲ww在线观看国产| 日韩欧美中文字幕一区| 日韩精品一区在线观看| 日韩欧美一级二级| 久久夜色精品国产欧美乱极品| 2020日本不卡一区二区视频| 久久久久久9999| 国产精品久久久久久户外露出| 亚洲精品日韩一| 日韩黄色免费电影| 久久爱另类一区二区小说| 国产精品系列在线播放| 91天堂素人约啪| 欧美日韩免费视频| 日韩视频一区二区三区在线播放| 久久久精品人体av艺术| 国产精品高潮呻吟| 亚洲一区二区免费视频| 老汉av免费一区二区三区| 成人精品一区二区三区中文字幕| 色狠狠一区二区| 日韩视频中午一区| 欧美国产精品一区二区三区| 亚洲综合另类小说| 九九九精品视频| 色噜噜夜夜夜综合网| 日韩一区二区三区电影| 中文字幕一区二区在线播放| 亚洲国产成人porn| 国产乱码一区二区三区| 日本韩国欧美一区二区三区| 欧美sm美女调教| 亚洲一区在线视频观看| 国产乱国产乱300精品| 在线观看免费成人| 久久精品一区二区三区av| 一区二区三区四区中文字幕| 韩国一区二区三区| 欧洲精品视频在线观看| 欧美激情综合网| 老鸭窝一区二区久久精品|