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

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

?? ofdmguifnsound.m

?? 幾個很好的OFDM仿真程序
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品久久久久久久人人人人传媒| 久久精品欧美一区二区三区麻豆| 精品一区二区免费| 亚洲美腿欧美偷拍| 精品av综合导航| 欧美最猛性xxxxx直播| 国产v综合v亚洲欧| 老司机免费视频一区二区| 亚洲美女淫视频| 国产欧美精品区一区二区三区 | 欧美日韩在线三区| 国产不卡高清在线观看视频| 天天操天天综合网| 一区二区三区四区视频精品免费 | 91精品久久久久久久99蜜桃| 91亚洲精品久久久蜜桃| 国内精品久久久久影院色| 丝袜美腿一区二区三区| 一区二区三区鲁丝不卡| 国产精品欧美一区二区三区| 精品福利一二区| 欧美色精品在线视频| 色偷偷成人一区二区三区91 | 成人小视频免费观看| 精品一区二区三区久久久| 性做久久久久久免费观看欧美| 亚洲三级电影全部在线观看高清| 久久久综合九色合综国产精品| 日韩一区二区三区电影| 欧美午夜一区二区三区免费大片| 97se亚洲国产综合自在线不卡| 国产乱一区二区| 韩国成人福利片在线播放| 免费看日韩a级影片| 日韩一区欧美二区| 日韩成人免费电影| 日韩国产高清在线| 美女视频一区在线观看| 日本不卡高清视频| 日本欧美一区二区| 蜜臀久久99精品久久久画质超高清| 午夜欧美视频在线观看| 天天操天天色综合| 日本中文在线一区| 久久99精品久久只有精品| 国内精品久久久久影院色| 国产一区 二区| 国产成人在线视频免费播放| 国产98色在线|日韩| 国产成人综合在线播放| 成人动漫在线一区| 91性感美女视频| 色成人在线视频| 91精品国产色综合久久不卡电影 | 91农村精品一区二区在线| 成人亚洲精品久久久久软件| 99re视频精品| 欧美性猛交xxxxxxxx| 欧美日本乱大交xxxxx| 日韩精品一区二区三区视频| 久久亚洲二区三区| 国产精品女上位| 亚洲国产精品视频| 美国欧美日韩国产在线播放| 国产综合一区二区| 成人av网站在线观看免费| 欧美性欧美巨大黑白大战| 欧美电视剧免费全集观看 | 三级一区在线视频先锋| 激情综合色丁香一区二区| 成人在线视频首页| 日本韩国精品在线| 日韩精品专区在线影院观看| 国产精品视频看| 亚洲成人午夜电影| 国产aⅴ综合色| 精品视频一区三区九区| 精品国产一区二区三区四区四| **欧美大码日韩| 蜜桃久久av一区| 91视频一区二区| 日韩欧美不卡一区| 18成人在线观看| 久久精品国产**网站演员| 成人激情小说乱人伦| 欧美日韩成人综合| 国产精品美女久久久久久久久| 日韩黄色小视频| av在线一区二区三区| 日韩美女一区二区三区四区| 国产精品久久福利| 精品中文字幕一区二区| 色吊一区二区三区 | 亚洲成人精品在线观看| 精品一区二区久久| 欧美亚洲国产怡红院影院| 久久久91精品国产一区二区精品 | 久久婷婷成人综合色| 亚洲国产日韩在线一区模特| 国产激情一区二区三区| 欧美一区二区三区免费视频| 亚洲三级免费观看| 国产精品系列在线观看| 欧美一区二区三区免费在线看 | 国产一区二区成人久久免费影院| 91精品福利在线| 中文字幕不卡的av| 欧美aⅴ一区二区三区视频| 欧美在线小视频| 中文字幕一区在线| 国产一区二区不卡老阿姨| 日韩三级精品电影久久久| 亚洲免费观看视频| 成人av电影在线观看| 国产午夜一区二区三区| 男女激情视频一区| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲激情自拍视频| 国产成人精品免费网站| 久久久综合精品| 久久99国产乱子伦精品免费| 777奇米四色成人影色区| 亚洲图片欧美色图| 欧洲av在线精品| 日韩伦理电影网| 91亚洲精品乱码久久久久久蜜桃| 亚洲国产高清在线| 国产99久久久国产精品免费看| 久久久久久久久久久久久久久99 | 99视频精品在线| 国产精品视频一二三| 国产mv日韩mv欧美| 国产目拍亚洲精品99久久精品| 国产乱妇无码大片在线观看| 久久久国产午夜精品| 韩国av一区二区三区四区| 日韩精品一区二区在线观看| 麻豆精品久久久| 日韩美女在线视频| 国内成人自拍视频| 国产日本欧美一区二区| 成人动漫av在线| 最新成人av在线| 欧美性色欧美a在线播放| 婷婷国产在线综合| 精品久久久久久无| 国产高清成人在线| 国产精品国产精品国产专区不蜜 | 国产成人av电影在线| 亚洲国产激情av| 91香蕉国产在线观看软件| 亚洲色图欧美在线| 在线日韩国产精品| 天堂av在线一区| 精品乱人伦一区二区三区| 国产乱子轮精品视频| 国产精品久久久久久久久免费樱桃| 成人国产在线观看| 亚洲最色的网站| 欧美一区二区三区人| 国产在线麻豆精品观看| 国产精品毛片无遮挡高清| 91麻豆国产在线观看| 日韩二区三区在线观看| 久久综合色8888| 懂色av一区二区三区蜜臀| 有码一区二区三区| 日韩免费成人网| voyeur盗摄精品| 丝袜美腿亚洲一区| 久久精品男人的天堂| 欧美性大战xxxxx久久久| 另类专区欧美蜜桃臀第一页| 国产精品你懂的| 91精品欧美综合在线观看最新| 国产精品影视在线观看| 亚洲精品伦理在线| 日韩精品一区二区三区视频在线观看 | 亚洲综合区在线| 精品国产乱码久久| 91浏览器入口在线观看| 九九久久精品视频| 亚洲综合色区另类av| 久久久影院官网| 欧美日韩在线不卡| 懂色av一区二区夜夜嗨| 日韩国产在线观看一区| 国产精品成人在线观看| 欧美精品18+| 91麻豆6部合集magnet| 国产精品中文字幕日韩精品 | 免费人成网站在线观看欧美高清| 国产精品麻豆久久久| 日韩欧美一区二区在线视频| 91视频.com| 国产麻豆欧美日韩一区| 香蕉影视欧美成人| 日韩毛片在线免费观看| 国产日韩欧美精品综合| 日韩欧美电影一区|