资源描述:
《连续系统s域分析》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、连续系统s域分析1点击SftAnum.den1、num=input(1num[numlznum2,••]=');den=input(1den[denirden2f;handles.num=num;hendies.den=den;guidata(hObject,handles);guidata(hObject,handles);□gridonaxes(handles•axes1);cla;axes(handles.axes2);cla;返回菜单4^close;main;壹击铺入f⑴求毁氏喪検symst;f=input(1f(t)=1);F=laplace(f)
2、点击铺入F
3、⑶求抄氏反喪换symss;F=input(1F(s)=1);f=ilaplace(F)7、A=handles•den;B=handles•num;axes(handles•axes1);[z,p]=tf2zp(B,A)zplane(zzp)guidete(hObject,handles);b=handles•num;a=handles.den;[z/Pl=tf2zp(b,a);[h,w]=freqs(b,a);hl=abs(h);h2=angle(h);_axes(handles.axes2);plot(w’hl);grid,xlabel(1(W)1);ylabel(1
4、-u^[E1);title(1H(jw)pA-IODO*);axes(handles•axes3);plot(w,h2*180/pi);grid,xlabel((w)*);ylabel(1Ial»(^IE)1);title(1H(jw)pAIa^p1);functionvarargout=lxxtplxy(varargin)%LXXTPLXYM-fileforlxxtplxy.fig%LXXTPLXY,byitselfcreatesanewLXXTPLXYorraisestheexisting%singleton*•%%H=LXXTPLXYreturnsthehandl
5、etoanewLXXTPLXYorthehandleto%theexistingsingleton*.%%LXXTPLXY(1CALLBACK1,hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinLXXTPLXY•Mwiththegiveninputarguments.%%LXXTPLXY(1Property1fValuef,...)createsanewLXXTPLXYorraisesthe%existingsingleton*.Startingfromtheleft,property
6、valuepairsare%appliedtotheGUIbeforelxxtplxy_Openir)gFunctiongetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtolxxtplxy_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE1sToolsmenu.ChoosenGUIallowsonlyone%instancetorun(singleton)n•%%Seealso:
7、GUIDE,GUIDATA,GUTHANDLES%Copyright2002-2003TheMathWorks,Inc-%Edittheabovetexttomodifytheresponsetohelplxxtplxy%LastModifiedbyGUIDEv2.519-Jun-201317:20:33NOTEDITBegininitializationcode一DOgui_Singleton=1;gui_Statestruct('gui_Name1r1gui_Singleton1rmfilenamez...gui_Singleton,...gui_OpeningFc
8、nf,@lxxtplxy_OpeningFcn,•••01xxtplxy_OutputFcn#•••[],[]);1gui_OutputFcn1.1gui_LayoutFcn1.1gui_Callback1rifnargin&&ischer(ver&rgin{1})gui_State•gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_Stat