参考的信号课设.docVIP

  • 4
  • 0
  • 约3.39千字
  • 约 8页
  • 2018-03-09 发布于河南
  • 举报
参考的信号课设

正弦信号 %绘制连续时间信号的时域波形 t=0:0.001:0.2; y=cos(2*pi*10*t); subplot(211); plot(t,y); xlabel(t 单位:s,Fontsize,8); title(连续时间信号f(t) cos(20*pi*t)); %绘制抽样后的时域信号 subplot(212); plot(t,y,b:); hold on; t2=cos(2*pi*10*t2); stem(t2,y2,’filled’); xlabel(t 单位:s,Fontsize,8); title(抽样信号 fs(t)); hold off; 图形 周期矩形脉冲信号 %绘制周期方波信号 t=0:0.01:100; y=square(t); subplot(311);plot(t,y); axis([0,10,-3,3]); title(周期方波信号); %绘制抽样后的方波信号 subplot(312); plot(t,y,b:); hold on; t2=0:1/100:0.01; y2=square(t2); stem(t2,y2); axis([0,10,-3,3]); title(抽样信号 fs(t)); hold off; 图形 f1=[3,2,1,1,1,2]; k1=-3:2; f2=0:5; k2=-1:4; f1=[3,2,1,1,1,2]; k1

文档评论(0)

1亿VIP精品文档

相关文档