《通信原理 课程设计 全》.doc

第一题 clear echo off t0=0.15; ts=0.001; fc=250; snr=20; fs=1/ts; t=(0:ts:t0); dt=0.01; df=0.3; snr_lin=10^(snr/10); m=[ones(1,t0/(3*ts)),-2*ones(1,t0/(3*ts)),zeros(1,t0/(3*ts)+1)]; c=cos(2.*pi.*fc.*t); u=[2+0.85*m].*c; clf figure(1) %(1)m(t)和u(t)的波形 subplot(2,1,1) plot(t,m(1:length(t))) xlabel(Time) title(基带信号m(t)) subplot(2,1,2) plot(t,u(1:length(t))) xlabel(Time) title(调制信号u(t)) [M,m,df1]=fftseq(m,ts,df); %(2)m(t)和u(t)的频谱图 M=M/fs; [U,u,df1]=fftseq(u,ts,df); U=U/fs; [C,c,df1]=fftseq(c,ts,df); f=[0:df1:df1*(length(m)-1)]-fs/2; figure(2)

文档评论(0)

1亿VIP精品文档

相关文档