【正文】
^L/2。 % 蝶形運算的兩個因子對應(yīng)單元下標(biāo)的關(guān)系 t=y(kp)*WNp。[x1,w1]=freqz(x1,1)。)xlabel(39。幅度39。Matlab自帶的FFT函數(shù)實現(xiàn)的x1的頻譜39。ylabel(39。plot(abs(y))。K39。)。) returns ringin contents as cell array% contents{get(hObject,39。 isequal(get(hObject,39。)) set(hObject,39。)。,39。), get(0,39。)} returns selected item from ringin% Executes during object creation, after setting all properties.function ringin_CreateF(hObject, eventdata, handles)% hObject handle to ringin (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles empty handles not created until after all CreateFs called% Hint: popupmenu controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc amp。% Executes on selection change in ringin.function ringin_Callback(hObject, eventdata, handles)% hObject handle to ringin (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,39。ylabel(39。編寫的FFT程序?qū)崿F(xiàn)的的x1的頻譜39。)。K39。axes()。)。title(39。 % 蝶形運算, 注意必須先進行減法運算,然后進行加法運算,否則要使用中間變量來傳遞y(k) y(k)=y(k)+t。 WNp=WN^p。 y=x1。 J=JK。x1(I+1)=x1(J+1)。 % 若x的長度不是2的冪,補零到2的整數(shù)冪 end %數(shù)據(jù)倒序操作J=0。)。n39。axes()。%當(dāng)語音信號文件較大時用這兩條%x1=reshape(x,1,2*n)。D:\Matlab\work\39。fs=str2double(get(,39。))。white39。defaultUicontrolBackgroundColor39。amp。String39。,39。), get(0,39。)) returns contents of N2 as a double% Executes during object creation, after setting all properties.function N2_CreateF(hObject, eventdata, handles)% hObject handle to N2 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles empty handles not created until after all CreateFs called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc amp。endfunction N2_Callback(hObject, eventdata, handles)% hObject handle to N2 (see GCBO)% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,39。BackgroundColor39。BackgroundColor39。String39。% hObject handle to figure% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Get default mand line output from handles structurevarargout{1} = 。end% End initialization code DO NOT EDIT% Executes just before gaoli208 is made visible.function gaoli208_OpeningF(hObject, eventdata, handles, varargin)% This function has no output args, see OutputF.% hObject handle to figure% eventdata reserved to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin mand line arguments to gaoli208 (see VARARGIN)% Choose default mand line output for gaoli208 = hObject。amp。, [] , ... 39。, gaoli208_OpeningF, ... 39。, mfilename, ... 39。,...) creates a new GAOLI208 or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before gaoli208_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to gaoli208_OpeningF via varargin.%% *See GUI Options on GUIDE39。,hObject,eventData,handles,...) calls the local% function named CALLBACK in with the given input arguments.%% GAOLI208(39。K39。plot(abs(y))。ylabel(39。Matlab自帶的FFT函數(shù)實現(xiàn)的x1的頻譜39。幅度39。)xlabel(39。 % 蝶形運算 end end end %y figure(2)[x1,w1]=freqz(x1,1)。