搜索
您的当前位置:首页正文

matlab做函数的相位图和模特性图

来源:意榕旅游网
 程序 syms t w;

f=heaviside(t)*exp(-t); %抽样信号 F=fourier(f);

subplot(241); %时域图 ezplot(f,[0,10]); title('exp(-t)u(t)'); grid on; subplot(242);

ezplot(abs(F),[-5,5]); %频域图 grid on;

f1=heaviside(t-4)*exp(-t+4);

subplot(243); %时移四个单位后的时域图 ezplot(f1,[0,10]); title('exp(-t+4)u(t-4)'); grid on; Y=fourier(f2);

subplot(244); %时移性质 ezplot(abs(Y),[-5,5]); grid on;

f2=heaviside(t/4)*exp(-t/4);

subplot(245); %尺度变换后的时域图 ezplot(f2,[0,10]); title('exp(-t/4)u(t/4)'); grid on; X=fourier(f2);

subplot(246); %尺度变换 ezplot(abs(X),[-5,5]); grid on;

subplot(247); %微分后的时域图 ezplot(diff(f)); title('微分性质'); grid on;

subplot(248); %微分性质 ezplot(abs(fourier(diff(f))),[-5,5]); grid on;

程序图形

因篇幅问题不能全部显示,请点此查看更多更全内容

Top