1、电信论文参考资料10电信学年论文参考t=-10:0.01:10i = get(handles.popupmenu1, Value);switch i case 1 plot(t,sin(t); case 2 plot(t,sinc(t); case 3 comet(t,sawtooth(t); endfunction pushbutton1_Callback(hObject, eventdata, handles)ft=get(findobj(tag,ft) ,string);ft=sym(ft);axes(handles.axes1)claezplot(ft)grid onanswer=ch
2、ar(fourier(ft);set(handles.fw,string,answer);fw=sym(get(handles.fw,string)axes(handles.axes2)claezplot(fw)grid onfw=get(findobj(tag,fw) ,string);fw=sym(fw);axes(handles.axes1)claezplot(fw)grid onanswer=char(ifourier(fw);set(handles.ft,string,answer);ft=sym(get(handles.ft,string)axes(handles.axes2)cl
3、aezplot(ft)grid onfunction x=Heaviside(t)x=(t0)ft=get(findobj(tag,ft) ,string);ft=sym(ft);axes(handles.axes1)claezplot(ft)grid onanswer=char(laplace(ft);set(handles.fs,string,answer);fs=sym(get(handles.fs,string)axes(handles.axes2)claezplot(fs)grid onfs=get(findobj(tag,fs) ,string);fs=sym(fs);axes(h
4、andles.axes1)claezplot(fs)grid onanswer=char(ilaplace(fs);set(handles.ft,string,answer);ft=sym(get(handles.ft,string)axes(handles.axes2)claezplot(ft)gridon fn=get(findobj(tag,fn) ,string);fn=sym(fn);syms n z;answer=char(ztrans(fn,n,z);fz=sym(answer)fz=simple(fz)answer=char(fz)set(handles.fz,string,a
5、nswer)syms n zfz=get(findobj(tag,fz) ,string);fz=sym(fz);answer=char(iztrans(fz,z,n);set(handles.fn,string,answer);fn=sym(get(handles.fn,string)axes(handles.axes1)clan=0:1:10;fn=2.n.*nstem(n,fn,filled)grid onn = str2double (get(handles.edit1, string);t=-2:0.01:2;F0=0.5;Fn=F0*ones(1,length(t);for i=1
6、:2:nFn=Fn+cos(pi*i*t)*sinc(i/2);endplot(t,Fn,m-,linewidth,2);axis(-2 2 -0.2 1.2);syms tn=-60:-1,eps,1:60;A=1;T = str2double (get(handles.tt, string);tao = str2double (get(handles.tao, string);F0=int(A,t,-tao/2,tao/2)/Tf=A*exp(-j*n*2*pi/T*t); Fn=int(f,t,-tao/2,tao/2)/T;Fn=simple(Fn)Fn=subs(Fn,n,n)ste
7、m(n,Fn,filled)line(-60 60,0 0)xlabel(n),ylabel(Fn)r = str2double (get(handles.r, string);l = str2double (get(handles.l, string);c = str2double (get(handles.c, string);b=r*c 0;a=r*l*c l r;axes(handles.axes1)clazs=roots(b)ps=roots(a)plot(real(zs),imag(zs),o)hold onplot(real(ps),imag(ps),x)hold ongrid
8、onr = str2double (get(handles.r, string);l = str2double (get(handles.l, string);c = str2double (get(handles.c, string);b=r*c 0;a=r*l*c l r;w=0:0.01:2;s=j*w;h=polyval(b,s)./polyval(a,s);axes(handles.axes1)clahm=abs(h);plot(w,hm);xlabel(w);ylabel(hm);grid onaxes(handles.axes2)clahp=angle(h)*180/pi;plo
9、t(w,hp);xlabel(w);ylabel(hp);grid onr = str2double (get(handles.r, string);l = str2double (get(handles.l, string);c = str2double (get(handles.c, string);b=r*c 0;a=r*l*c l r;syms sxs=poly2sym(b,s)/poly2sym(a,s)xt=char(ilaplace(xs);set(handles.im,string,xt);xt=sym(get(handles.im,string)axes(handles.ss
10、s)claezplot(xt)grid onr = str2double (get(handles.r, string);l = str2double (get(handles.l, string);c = str2double (get(handles.c, string);b1=r*c 0;a1=r*l*c l r 0;syms sxs1=poly2sym(b1,s)/poly2sym(a1,s)xt1=char(ilaplace(xs1);set(handles.im,string,xt1);xt1=sym(get(handles.im,string)axes(handles.iii)claezplot(xt1)grid onsyms sfs=s/(s2+s+1)ft=ilaplace(fs)ezplot(ft)grid onsyms t uf=Du+2*u=2*exp(-t),u(0)=0u=dsolve(f)ezplot(u)u =2*exp(-t)-2*exp(-2*t)
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1