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

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

?? ofdmguifnsound.m

?? 利用QAM調(diào)制
?? M
字號:
% OFDMguiFnSound.m
function OFDMguiFnSound(action)
% Consolidates all of the GUI callbacks into one main function
% Alan Brooks the man wrote this
stringArray = [...
% 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 % set to file name in future!
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' %-----------------------------------
if strcmp('Student Edition',hostid)
sound(wavread('Long.wav',16384),11025) % check for student array size limit
else
sound(wavread('Long.wav'),11025)
end
case 'PlayQAMLong' %---------------------------------------
if strcmp('Student Edition',hostid)
sound(wavread('QAM_Long.wav',16384),11025) % check for student array size limit
else
sound(wavread('QAM_Long.wav'),11025)
end
case 'PlayOFDMLong' %---------------------------------------
if strcmp('Student Edition',hostid)
sound(wavread('OFDM_Long.wav',16384),11025) % check for student array size limit
else
sound(wavread('OFDM_Long.wav'),11025)
end
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 begin
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米一区二区三区| 日韩你懂的电影在线观看| 在线不卡的av| 欧美激情一区二区| 蜜桃久久久久久| 91国产精品成人| 亚洲国产高清不卡| 狠狠色丁香久久婷婷综| 欧美日本一区二区三区| 亚洲视频在线观看三级| 国产成人综合网站| 91精品午夜视频| 亚洲美女在线国产| 国产夫妻精品视频| 日韩小视频在线观看专区| 亚洲欧美日韩小说| 成人国产在线观看| 久久影视一区二区| 日韩av网站免费在线| 色婷婷av一区二区三区大白胸| 久久久五月婷婷| 日日夜夜免费精品视频| 96av麻豆蜜桃一区二区| 中文欧美字幕免费| 国产精品资源在线| 精品剧情v国产在线观看在线| 日韩电影在线观看网站| 欧美日韩一区二区电影| 自拍偷拍国产亚洲| 99精品视频中文字幕| 国产色产综合色产在线视频| 国产一区二区三区在线观看精品| 精品区一区二区| 日韩vs国产vs欧美| 欧美日韩国产片| 无吗不卡中文字幕| 69久久99精品久久久久婷婷| 无吗不卡中文字幕| 91精品欧美久久久久久动漫| 亚洲成a人v欧美综合天堂下载| 欧美色图12p| 日韩精品乱码av一区二区| 欧美一区二区三区人| 欧美a级一区二区| 日韩三级.com| 国产成人午夜99999| 国产精品理论在线观看| 色哟哟国产精品| 亚洲精品免费一二三区| 欧美天堂一区二区三区| 婷婷综合五月天| 欧美成va人片在线观看| 国产精品亚洲一区二区三区在线| 国产精品三级视频| 99re热这里只有精品视频| 亚洲天堂2016| 91精品国产欧美一区二区成人 | 国内成人免费视频| 欧美国产精品一区二区| 91国产福利在线| 麻豆国产一区二区| 国产精品美女久久久久久久久| 91国产免费看| 韩国av一区二区三区| 中文字幕日韩一区| 欧美日韩国产一级| 粉嫩aⅴ一区二区三区四区| 一区二区三区四区在线| 精品久久人人做人人爰| 91国产福利在线| 国产精品99久| 日韩中文字幕1| 久久久久亚洲蜜桃| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 制服丝袜av成人在线看| 成人精品一区二区三区中文字幕| 亚洲国产美女搞黄色| 久久久精品欧美丰满| 欧美日韩一区二区三区在线看| 国产不卡视频在线观看| 亚洲mv在线观看| 欧美激情综合五月色丁香| 777欧美精品| 成人激情动漫在线观看| 99精品国产视频| 老司机精品视频线观看86 | 国产日韩欧美电影| 欧美肥妇free| 色94色欧美sute亚洲线路一久| 久久精品国产99| 亚洲电影一区二区| 国产精品天干天干在线综合| 日韩欧美一区在线| 欧美日韩一区二区在线观看视频 | 亚洲综合清纯丝袜自拍| 久久午夜免费电影| 日韩免费观看高清完整版在线观看| 色噜噜狠狠色综合中国 | 国产激情精品久久久第一区二区| 亚洲大尺度视频在线观看| 国产精品麻豆欧美日韩ww| 精品国产伦理网| 8x8x8国产精品| 欧美日韩国产影片| 欧美自拍偷拍一区| 91国偷自产一区二区三区成为亚洲经典 | 一本大道久久精品懂色aⅴ| 国产精品1区二区.| 国产精品一区二区三区四区| 久久精品久久精品| 美女一区二区在线观看| 亚洲成av人影院在线观看网| 夜夜夜精品看看| 亚洲人成在线播放网站岛国| 中文字幕在线免费不卡| 国产精品九色蝌蚪自拍| 亚洲三级电影网站| 亚洲美女淫视频| 亚洲午夜免费视频| 亚洲国产一区二区三区青草影视| 亚洲黄色av一区| 亚洲激情综合网| 亚洲在线观看免费视频| 天天免费综合色| 无吗不卡中文字幕| 麻豆精品久久精品色综合| 国产一区二区三区精品欧美日韩一区二区三区 | 成人av在线一区二区| 99久久er热在这里只有精品15| 99热精品一区二区| 欧美伊人久久久久久久久影院 | 欧美日韩亚洲不卡| 欧美日韩在线三区| 日韩欧美国产不卡| www欧美成人18+| 中文字幕+乱码+中文字幕一区| 国产精品久久久久aaaa樱花| 亚洲精品视频在线观看网站| 亚洲大片在线观看| 激情图片小说一区| 99精品偷自拍| 欧美一区2区视频在线观看| 2020国产精品久久精品美国| 亚洲色图视频网| 免费在线观看成人| 成人av网站大全| 亚洲国产岛国毛片在线| 中文字幕日韩一区| 老司机免费视频一区二区三区| 国产69精品一区二区亚洲孕妇| 91精彩视频在线| 精品国产一区二区三区不卡| 国产精品久久久久一区二区三区共| 一区二区欧美在线观看| 国产一区二区三区免费播放 | 日韩精品资源二区在线| 欧美经典三级视频一区二区三区| 亚洲一区二三区| 国产精品自拍在线| 69久久夜色精品国产69蝌蚪网| 日本一区免费视频| 天堂久久一区二区三区| 懂色av一区二区三区免费观看| 色婷婷av一区| 欧美激情一区二区三区全黄| 秋霞影院一区二区| 白白色亚洲国产精品| 日韩欧美第一区| 亚洲猫色日本管| 国产在线视频一区二区| 欧美性生活一区| 亚洲国产成人在线| 琪琪久久久久日韩精品| 色94色欧美sute亚洲线路二| 久久久久久**毛片大全| 美女一区二区视频| 精品视频999| 亚洲精品少妇30p| 成人久久18免费网站麻豆| 精品国产污污免费网站入口 | 精品国产免费久久| 日本大胆欧美人术艺术动态| 欧美制服丝袜第一页| 亚洲美女精品一区| 成人午夜伦理影院| 国产精品污www在线观看| 国产主播一区二区三区| ww亚洲ww在线观看国产| 韩国av一区二区三区四区| 欧美大片一区二区| 麻豆精品在线看| 欧美一区二区三区四区视频| 日韩极品在线观看| 欧美一级欧美一级在线播放| 天堂成人免费av电影一区| 欧美三级日本三级少妇99| 亚洲午夜免费视频| 欧美日韩国产123区| 午夜精品视频在线观看| 欧美日韩高清在线|