基于Matlab的虚拟信号发生器设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

MATLABMatrixLaboratoryMathWorks。MATLAB、、、、、、、、、。GraphicalUserInterfaceGUI。。MatlabGUI[1]。。。、、、。。、、、、、、。1、、、。。。、、、、、。GUI。2。2、、、、。3。。。4。。[1]http://tieba.baidu.com/f芽kz=478777786[O/L].[2][]RobertC.Martin.AgileSoftwareDevelopment:Principles,Patterns,andPractices[M].PearsonEducation.[3].4[M]..[4][]FederovAlexNataliaElmanova.AdvancedDelphiDevelo-per'sGuidetoADO[5]RayLiscbner.Delphi[M]..2009-12-15*430072。201021MatlabMatlabTP391.9A1002-2422201001-0003-02AVirtualSignalGeneratorBasedonMatlabCheZipingAbstract:Matlabisapracticalsoftwarewithverystrongfunctionfordataanalysisandprocess.DataacquisitiontoolboxofKeyword:。GUIMatlab。Matlabpapercouldenrichtheunderstandingofthesignalprocessingandalsohavesomemerit.。Matlaboffersveryconvenientfunctionandorderforrealizingtheinput&outputofdata.ThepaperintroducesthedesignofavirtualsignalgeneratorbyusingGUItoolboxbasedonMatlab.Thesignalgeneratordesignedinthis*MatlabMatlabSignalGeneratorVirtualInstrument......................................................................................................................................·3·1。1。。GUI。TagradioZHENGXIANax-es2、sliderPINLV、slider-FUZHI、sliderXIANGWEI、editPINLV、editFUZHI、editXIANGWEI。。functionradioZHENGXIAN_CallbackhObject,eventdata,handlessethObject,'value',1%1sethandles.radioFANGBO,'value',0%0sethandles.radioSANJIAOBO,'value',0sethandles.radioJUCHIBO,'value',0sethandles.radioBAIZAOSHENG,'value',0sethandles.radioMAICHONG,'value',0sethandles.radioJIEYUE,'value',0sethandles.radioXIEPO,'value',0sethandles.sliderPINLV,'enable','on'%sethandles.sliderFUZHI,'enable','on'%sethandles.sliderXIANGWEI,'enable','on'%sethandles.sliderK,'enable','off't=0:pi/360:8觹pi;y=sin0.2觹pi觹t;cla;axeshandles.axes2;plott,y;grid;axis[0,8觹pi,-1.2,1.2];[-1.2,1.2]functionsliderPINLV_CallbackhObject,eventdata,handlesf=gethObject,'value';%fsethandles.editPINLVS,'string',num2strf;%editPINLVSA=str2numgethandles.editFUZHI,'string';%AP=str2numgethandles.editXIANGWEI,'string';%PZHENGXIAN=gethandles.radioZHENGXIAN,'value';%ZHENGXIANFANGBO=gethandles.radioFANGBO,'value';%FANGBOSANJIAOBO=gethandles.radioSANJIAOBO,'value';%SANGJIAOBOJUCHIBO=gethandles.radioJUCHIBO,'value';%JUCHIBO%。ifZHENGXIAN==1%t=0:pi/360:8觹pi;y=A觹sin2觹pi觹f觹t+P觹2觹pi;axeshandles.axes2;plott,y;grid;axis[0,8觹pi,-1.2,1.2];elseifFANGBO==1%t=0:0.001:6;y=A觹square2觹pi觹f觹t+4觹P/f,50;axeshandles.axes2;plott,y;axis[0,6,-1.2,1.2];elseifJUCHIBO==1%t=0:0.01:20;y=A觹sawtoothpi觹f觹t+4觹P/f,1;axeshandles.axes2;plott,y;grid;axis[0,20,-1.2,1.2];elseSANJIAOBO==1%t=0:0.01:20;y=A觹sawtoothpi觹f觹t+4觹P/f,0.5;axeshandles.axes2;plott,y;grid;axis[0,20,-1.2,1.2];end%3matlab、、DTMF。。[1].MATLAB6.5.:2003.·4·

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功