音頻頻譜分析儀設(shè)計與實現(xiàn)剖析_第1頁
音頻頻譜分析儀設(shè)計與實現(xiàn)剖析_第2頁
已閱讀5頁,還剩13頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、實驗八音頻頻譜分析儀設(shè)計與實現(xiàn)一、實驗原理MATLAB是一個數(shù)據(jù)分析和處理功能十分強大的工程實用軟件,其數(shù)據(jù)采集工具箱為實現(xiàn)數(shù)據(jù)的輸入和輸出提供了十分方便的函數(shù)和指令。本實驗基于聲卡與MATLAB實現(xiàn)音頻信號頻譜分析儀。1、頻率(周期)檢測對周期信號來說,可以用時域波形分析來確定信號的周期,也就是計算相鄰兩個信號波峰的時間差或過零點的時間差。采用過零點(ti)的時間差T(周期)。頻率即為f=1/T,由于能夠求得多個T值,故采用他們的平均值作為周期的估計值。2、峰值檢測在一個周期內(nèi),求出信號最大值y與最小值y的差得一半記為A,同樣得到多個maxmina值,但第一個A值對應(yīng)的y和y不是在一個周期內(nèi)

2、搜索得到的,故以除第一個以外maxmin的A值的平均作為幅值的估計值。3、相位檢測采用過零法,即通過判斷與同頻零相位信號過零點時刻,計算其時間差,然后換成相應(yīng)的相位差。9二2n(1-ti/T),同樣以9的平均值作為相位的估計值。4、數(shù)字信號統(tǒng)計量估計(1) 峰值P的估計在樣本數(shù)據(jù)x中找出最大值與最小值,其差為雙峰值,雙峰值的一半即為峰值。(2) 均值估計E(y)=£y,N為樣本容量。Nii=0(3) 均方值估計(4)E(y2)=方差估計1屮力y2Nii=0D(y)=1£(y-E(y)2Nii=05、頻譜分析原理時域分析只能反映信號的幅值隨時間的變化情況,除但頻率分量的簡單波

3、形外,很難明確提示信號的頻率組成和各頻率分量大小,而頻譜分析能很好的解決此問題。(1)DFT與FFT對于給定的時域信號y,可以通過Fourier變換得到頻域信息Y。Y可按下式計算=遲用瞬m隨+2旳(2兀泌f)加oo式中,N為樣本容量,t=1/Fs為采樣間隔。采樣信號的頻譜是一個連續(xù)的頻譜,不可能計算出所有的點的值,故采用離散Fourier變換(DFT),即N-0式中,f=Fs/N。但上式的計算效率很低,因為有大量的指數(shù)等價于三角函數(shù))運算,故實際中多采用快速Fourier變換(FFT)。其原理即是將重復(fù)的三角函數(shù)算計的中間結(jié)果保存起來,以減少重復(fù)三角函數(shù)計算帶來的時間浪費。由于三角函數(shù)計算的重

4、復(fù)量相當(dāng)大,故FFT能極大地提高運算效率。(2)頻率、周期的估計對于Y(kAf),如果當(dāng)kAf=時,Y(kAf)取最大值,則為頻率的估計值,由于采樣間隔的誤差,也存在誤差,其誤差最大為Af/2。周期T=l/f。從原理上可以看出,如果在標(biāo)準(zhǔn)信號中混有噪聲,用上述方法仍能夠精確地估計出原標(biāo)準(zhǔn)信號的頻率和周期。(3)頻譜圖為了直觀地表示信號的頻率特性,工程上常常將Fourier變換的結(jié)果用圖形的方式表示,即頻譜圖。以頻率f為橫坐標(biāo),IY(f)I為縱坐標(biāo),可以得到幅值譜;以頻率f為橫坐標(biāo),argY(f)為縱坐標(biāo),可以得到相位譜;以頻率f為橫坐標(biāo),ReY(f)為縱坐標(biāo),可以得到實頻譜;以頻率f為橫坐標(biāo),

5、ImY(f)為縱坐標(biāo),可以得到虛頻譜。根據(jù)采樣定理,只有頻率不超過Fs/2的信號才能被正確采集,即Fourier變換的結(jié)果中頻率大于Fs/2的部分是不正確的部分,故不在頻譜圖中顯示。即橫坐標(biāo)fG0,Fs/26、模塊劃分模塊化就是把程序劃分成獨立命名且可獨立訪問的模塊,每個模塊完成一個子功能,把這些模塊集成起來構(gòu)成一個整體,可以完成制定的功能,滿足用戶需求。二、實驗內(nèi)容設(shè)計一個音頻頻譜分析儀,功能包括:(1) 音頻信號輸入,從聲卡輸入、從WAV文件輸入、從標(biāo)準(zhǔn)信號發(fā)生器輸入;(2) 信號波形分析,包括幅值、頻率、周期、相位的估計,以及統(tǒng)計量峰值、均值。均方值和方差的計算。(3) 信號頻譜分析,頻

6、率、周期的估計,圖形顯示幅值譜、相位譜、時頻譜、虛頻譜和功率譜的曲線。三. 實驗結(jié)果1.聲卡輸入(1)正弦波fanwenhan聲音信號頻譜分析儀作者:范文翰2011082207分析對象從第廠口點到第1024點分析所有點時域分析頻域分析周期0.0199805峰值99.9999頻率50.0489均值0.0468189幅值99.9858均方值4997.36相位0.5方差5002.24廠時域分析結(jié)果頻域域分析結(jié)果一周期|0小9960|頻率|50.0978輸入一samplelersrte5120。聲卡開始錄音OWAV文件波形更圖信號發(fā)生器打開文件生成波形幅頻特性12108_采樣點數(shù)1歪4timereco

7、rd|5fife|*.wav:聲道|v頻率幅值相位也isoiio?;斓?sru一-dole20.nn100015002000250030003功+1日.freaenc.vfHzl.0相頻特性喙頻特性1虛頻特性.0-1-2?2字1HII-21-3&-eu-5elu-aMod(2)方波500100D1600200025003000kIfreqency(Hz)fanwenhan聲音信號頻譜分析儀廠時域分析結(jié)果-周期0.0199653峰值作者:范文2011082207-分析對象一從第匚點到第1024點分析所有點時域分析頻域分析頻率幅值相位50.0871000.47409均值均方值方差100|0

8、.195313|1000010009.7頻域域分析結(jié)果一周期,0.019960;頻率50.09押輸入I、,(-4-1*I;|:h|samptelerate-5120米祎點報*1024二聲卡開始錄音timerecordOWAV文件信號發(fā)生器file|聲道1|披形丙莎刁頻率幅值相位%ri棍迭分析對象100.IIIIII50WAVE幅頻特性15打開文件生成波形apnl=dlue-501010001500200025003000.freaenqvIHR.00"n,功率譜r-相頻特性fnxl-liuema.-EaJIl,:;-100丨丨丨丨I丨丨丨丨丨丨丨丨丨丨丨丨丨丨02004M600800

9、10002虛籟特性.4實頻特性1C-110001500200025003000>ifreqency(Hz)zsnn30Q0-JKeu'61BUJ_(3)三角波聲音信號頻譜分析儀作者:范文翰2011082207-分析對象從第;1點到第1024點口分析所有點時域分析頻域分析周期0.0199805峰值99.9022頻率50.0489均值-0.0665111幅值99.0913均方值3334.62相位5.2124方差3337.87WAVE廠時域分析結(jié)果頻域域分析結(jié)果一周期|。0伯960|頻率j50.(j978|-輸入一sampleterate5120°聲卡I開始錄苗timerec

10、ordfile|聲道|1|采樣點數(shù)1Q245分析對象幅頻特性10信號發(fā)生器頻率幅值相位Iso11wo棍迭打開文件生成波形100-gnl=dlue亠亠、*10001500200025003000,功率譜呻叱.相頻特性1實頻特性-1000.“4200虛籟特性lalgod01UUU15UU20UU25U(J3UOOIfreqency(Hz)(4)鋸齒波Dfanwenhan聲音信號頻譜分析儀廠時域分析結(jié)果周期0.0199805作者:范文翰20"082207-分析對象從第工點到第衛(wèi)24點口分析所有點時域分析頻域分析廠輸入samplelerate5120:米樣點數(shù)1024O聲卡開女臺錄音time

11、record5file|twav|聲道|:頻率幅值相位nno.ri棍迭OWAV文件波形墜生成波形打開文件信號發(fā)生器皿實頻特性I00I00相頻特性,ml>'JJIJ-p-2O-2J(5)白噪聲頻率50.0489幅值99.0225相位3.6416峰值99.9022均值-0.100131均方值3336.98方差|334023|頻域域分析結(jié)果一周期0.59960|頻率|500978|100210a-ibu'ctee-分析對象WAVE-10010.A200400&0080010QQ3虛頻特性一.-sru=dEE幅頻特性ncnn1,功率譜100015002000frRtiRn

12、cvfH7250030004nnnynnn?斥nn3QQQ聲音信號頻譜分析儀作者:范文翰2011082207分析對象從第4點到第衛(wèi)2可點分析所有點時域分析-輸samplelerate-5120采樣點數(shù)1024O聲卡|開始錄音|timerecordLWAX件據(jù)屛信號發(fā)生器打開文件file|*.W日V|聲道|1I頻率幅值相位|so|foa混迭生成波形相頻特性,譏實頻特性-600011nwnn-innn-4ID00程序1000150020002500'10500)AJ時域分析結(jié)果周期頻率幅值相位30001086Ills500100015002000250Q3000Ifreqency(Hz)0

13、.00328012304.861885.51652.6571分析對象WAVE峰值均值均方值方差|99.9543;|0.6仃637|3534.28|3537.36頻域域分析結(jié)果一周期000588頻率1698.32|100600-501000150020002500.freaencHz).幅頻特性20060QQ虛頻特性30004006008Q01QQQncnn3功率譜.1000160020002500kifreqency(Hz)3000functionvarargout=fanwenhan(varargin)gui_Singleton=1;guiState=struct('guiName&

14、#39;,mfilename,.'guiSingleton',guiSingleton,.'guiOpeningFcn',fanwenhanOpeningFcn,.'guiOutputFcn',fanwenhanOutputFcn,.'guiLayoutFcn',.'guiCallback',);ifnargin&&ischar(varargin1)gui_State.gui_Callback=str2func(varargin1);endifnargoutvarargout1:nargout=gu

15、i_mainfcn(gui_State,varargin:);elsegui_mainfcn(gui_State,varargin:);endfunctionfanwenhan_OpeningFcn(hObject,eventdata,handles,varargin)handles.inputtype=0;xlabel(handles.plot1,'freqency(Hz)');xlabel(handles.plot2,'freqency(Hz)');xlabel(handles.plot3,'freqency(Hz)');xlabel(han

16、dles.plot4,'freqency(Hz)');xlabel(handles.plot5,'freqency(Hz)');ylabel(handles.plot1,'amplitude');ylabel(handles.plot2,'phase(rad)');ylabel(handles.plot3,'real');ylabel(handles.plot4,'Imaginary');ylabel(handles.plot5,'power');handles.output=hOb

17、ject;functionvarargout=fanwenhan_OutputFcn(hObject,eventdata,handles)varargout1=handles.output;functionfigure1_CreateFcn(hObject,eventdata,handles)functiontimeanalyse_Callback(hObject,eventdata,handles)Fs=str2double(get(findobj('Tag','samplerate'),'String');N=str2double(get(f

18、indobj('Tag','samplenum'),'String');ifhandles.inputtype=0msgbox'Nowaveexist!Pleasechooseainputtype!');return;endn=1;ymax=max(handles.y(1)handles.y(2);ymin=min(handles.y(1)handles.y(2);from=str2double(get(handles.pointfrom,'String');to=str2double(get(handles.po

19、intto,'String');iffrom<1|to-from<5;msgbox'Errorrange!');return;endfori=from+2:to-1;ifhandles.y(i-1)<0&handles.y(i-2)<0&handles.y(i)>=0&handles.y(i+1)>0ifhandles.y(i)=Oti(n)=i;elseti(n)=i-handles.y(i)/(handles.y(i)-handles.y(i-1);endamp(n)=(ymax-ymin)/2;y

20、max=0;ymin=0;n=n+1;elseifymax<handles.y(i)ymax=handles.y(i);endifymin>handles.y(i)ymin=handles.y(i);endendendn=n-1;fori=1:n-1T(i)=ti(i+1)-ti(i);endfreq=Fs/mean(T);set(handles.outt,'String',1/freq);set(handles.outfreq,'String',num2str(freq);set(handles.outamp,'String',nu

21、m2str(mean(amp(2:n-1);phase=2*pi*(1-(ti(1:n-1)-1)./T+floor(ti(1:n-1)-1)./T);set(handles.outphase,'String',num2str(mean(phase);set(handles.outpeak,'String',(max(handles.y(from:to)-min(handles.y(from:to)/2);set(handles.outmean,'String',mean(handles.y(from:to);set(handles.outmea

22、nsquare,'String',mean(handles.y(from:to).入2);set(handles.outs,'String',std(handles.y(from:to)八2);functionWAVfile_Callback(hObject,eventdata,handles)h=findobj('Tag','filename');set(h,'enable','on');h=findobj('Tag','freq');set(h,'enab

23、le','off');h=findobj('Tag','amp');set(h,'enable','off');h=findobj('Tag','phase');set(h,'enable','off');set(findobj('Tag','recordtime'),'enable','off')set(handles.channel,'enable','

24、on');set(handles.fileopen,'enable','on');set(handles.gensig,'enable','off');set(handles.wavetype,'enable','off');set(handles.add,'enable','off');set(handles.startrecord,'enable','off');functionsoundcard_Callback(hObj

25、ect,eventdata,set(findobj('Tag','recordtime'),'enable','on');h=findobj('Tag','filename');set(h,'enable','off');h=findobj('Tag','freq');set(h,'enable','off');h=findobj('Tag','amp');set(h,&#

26、39;enable','off');h=findobj('Tag','phase');set(h,'enable','off');set(handles.channel,'enable','off');set(handles.fileopen,'enable','off');set(handles.gensig,'enable','off');set(handles.wavetype,'enable

27、9;,'off');set(handles.add,'enable','off');set(handles.startrecord,'enable','on');functiongenerator_Callback(hObject,eventdata,h=findobj('Tag','filename');set(h,'enable','off');h=findobj('Tag','freq');set(h,'e

28、nable','on');h=findobj('Tag','amp');set(h,'enable','on');h=findobj('Tag','phase');set(h,'enable','on');set(findobj('Tag','recordtime'),'enable','off')set(handles.channel,'enable','

29、off');set(handles.fileopen,'enable','off');set(handles.gensig,'enable','on');set(handles.wavetype,'enable','on');handles)handles)set(handles.add,'enable','on');set(handles.startrecord,'enable','off');functionfilename

30、_Callback(hObject,eventdata,handles)functionfilename_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionfreq_Callback(hObject,eventdata,handles)functionfreq_C

31、reateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionamp_Callback(hObject,eventdata,handles)functionamp_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'

32、;BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionphase_Callback(hObject,eventdata,handles)functionphase_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObje

33、ct,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionsamplerate_Callback(hObject,eventdata,handles)functionsamplerate_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'Backgroundcolor',get(0,'de

34、faultUicontrolBackgroundColor);endfunctionsamplenum_Callback(hObject,eventdata,handles)functionsamplenum_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionam

35、pfreq_CreateFcn(hObject,eventdata,handles)functionrecordtime_Callback(hObject,eventdata,handles)functionrecordtime_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);end

36、functionstartrecord_Callback(hObject,eventdata,handles)Fs=str2double(get(findobj('Tag','samplerate'),'String');handles.y=wavrecord(str2double(get(findobj('Tag','recordtime'),'String')*Fs,Fs,'int16');handles.inputtype=1;guidata(hObject,handles);

37、plot(handles.time,handles.y);title('WAVE');ysize=size(handles.y)set(handles.samplenum,'String',num2str(ysize(1);functionfileopen_Callback(hObject,eventdata,handles)temp=wavread(get(findobj'Tag','filename'),'String');channel=str2double(get(handles.channel,'

38、String');handles.y=temp(:,channel);handles.inputtype=2;guidata(hObject,handles);plot(handles.time,handles.y);title('WAVE');ysize=size(handles.y)set(handles.samplenum,'String',num2str(ysize(1);functiongensig_Callback(hObject,eventdata,handles)Fs=str2double(get(findobj('Tag'

39、;,'samplerate'),'String');N=str2double(get(findobj('Tag','samplenum'),'String');x=linspace(O,N/Fs,N);soundtype=get(handles.wavetype,'Value');frequency=str2double(get(handles.freq,'String');amp=str2double(get(handles.amp,'String');phase=

40、str2double(get(handles.phase,'String');switchsoundtypecase1y=amp*sin(2*pi*x*frequency+phase);case2y=amp*sign(sin(2*pi*x*frequency+phase);case3y=amp*sawtooth(2*pi*x*frequency+phase,0.5);case4y=amp*sawtooth(2*pi*x*frequency+phase);case5y=amp*(2*rand(size(x)-1);otherwiseerrordlg'Illegalwave

41、type','Chooseerrer');endifget(handles.add,'Value')=0.0handles.y=y;elsehandles.y=handles.y+y;endhandles.inputtype=3;guidata(hObject,handles);plot(handles.time,handles.y);title('WAVE');axis(0N-str2double(get(handles.amp,'String')str2double(get(handles.amp,'Strin

42、g');functionoutfreq_Callback(hObject,eventdata,handles)functionoutfreq_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionoutamp_Callback(hObject,eventdat

43、a,handles)functionoutamp_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionoutphase_Callback(hObject,eventdata,handles)functionoutphase_CreateFcn(hObject,eve

44、ntdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionoutpeak_Callback(hObject,eventdata,handles)functionoutpeak_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundc

45、olor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionoutmean_Callback(hObject,eventdata,handles)functionoutmean_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'

46、BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionoutmeansquare_Callback(hObject,eventdata,handles)functionoutmeansquare_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defa

47、ultUicontrolBackgroundColor);endfunctionouts_Callback(hObject,eventdata,handles)functionouts_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionfoutfreq_Callb

48、ack(hObject,eventdata,handles)functionfoutfreq_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionfoutamp_Callback(hObject,eventdata,handles)functionfoutamp_C

49、reateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionfoutphase_Callback(hObject,eventdata,handles)functionfoutphase_CreateFcn(hObject,eventdata,handles)ifispcset

50、(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionedit18_Callback(hObject,eventdata,handles)functionedit18_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white')

51、;elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionedit19_Callback(hObject,eventdata,handles)functionedit19_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'Backgroundcolor','white');elseset(hObject,'BackgroundColor',get(0,&

52、#39;defaultUicontrolBackgroundColor);endfunctionedit20_Callback(hObject,eventdata,handles)functionedit20_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctioned

53、it21_Callback(hObject,eventdata,handles)functionedit21_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionfreqanalyse_Callback(hObject,eventdata,handles)Fs=st

54、r2double(get(findobj('Tag','samplerate'),'String');N=str2double(get(findobj('Tag','samplenum'),'String');ifhandles.inputtype=0msgbox'Nowaveexist!Pleasechooseainputtype!');return;endfrom=str2double(get(handles.pointfrom,'String');to=str2

55、double(get(handles.pointto,'String');sample=handles.y(from:to);f=linspace(0,Fs/2,(to-from+1)/2);Y=fft(sample,to-from+1);C,I=max(abs(Y);set(handles.foutt,'String',1/f(I);set(handles.foutfreq,'String',f(I);Y=Y(1:(to-from+1)/2);plot(handles.plot1,f,2*sqrt(Y.*conj(Y);plot(handles

56、.plot2,f,angle(Y);plot(handles.plot3,f,real(Y);plot(handles.plot4,f,imag(Y);plot(handles.plot5,f,abs(Y).八2);xlabel(handles.plot1,'freqency(Hz)');xlabel(handles.plot2,'freqency(Hz)');xlabel(handles.plot3,'freqency(Hz)');xlabel(handles.plot4,'freqency(Hz)');xlabel(handl

57、es.plot5,'freqency(Hz)');ylabel(handles.plot1,'amplitude');ylabel(handles.plot2,'phase(rad)');ylabel(handles.plot3,'real');ylabel(handles.plot4,'Imaginary');ylabel(handles.plot5,'power');functionpointfrom_Callback(hObject,eventdata,handles)functionpoin

58、tfrom_CreateFcn(hObject,eventdata,handles)ifispcset(hObject'BackgroundColor','white');elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor);endfunctionpointto_Callback(hObject,eventdata,handles)functionpointto_CreateFcn(hObject,eventdata,handles)ifispc

59、set(hObject'Backgroundcolor','white');elseset(hObject,'Backgroundcolor',get(0,'defaultUicontrolBackgroundColor);endfunctionplay_Callback(hObject,eventdata,handles)Fs=str2double(get(findobj('Tag','samplerate'),'String');wavplay(handles.y,Fs);functio

60、nscale_Callback(hObject,eventdata,handles)val=get(hObject,'value');val=10A(val*5+1);x=get(handles.xmove,'Value')*str2double(get(handles.samplenum,'String');axis(handles.time,xval+xmin(handles.y)max(handles.y);functionscale_CreateFcn(hObject,eventdata,handles)usewhitebg=1;ifus

61、ewhitebgset(hObject'BackgroundColor',.9.9.9);elseset(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor');endfunctionscale2_Callback(hObject,eventdata,handles)val=get(hObject,'value');val=10A(val*5+1);xlim(handles.plot1,0val);xlim(handles.plot2,0val);xlim(handles.plot3,0val);xlim(handles.plot4,0val);functionscale2_CreateFcn(hObject,eventdata,handles)usewhitebg=1;ifusewhitebgset(hObject'BackgroundColor',.9.9.9);elseset(hOb

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論