Matlab_通信系统建模与仿真例题源代码推荐.docxVIP

  • 6
  • 0
  • 约3.12万字
  • 约 21页
  • 2018-04-26 发布于湖北
  • 举报

Matlab_通信系统建模与仿真例题源代码推荐.docx

Matlab_通信系统建模与仿真例题源代码推荐

% ch2example1prg1.m dt=1e-4; % 仿真采样间隔 T=3*1e-3; % 仿真终止时间 t=0:dt:T; input=2*cos(2*pi*1000*t); % 输入被调信号 carrier=5*cos(2*pi*1e4*t); % 载波 output=(2+0.5*input).*carrier; % 调制输出 % 作图: 观察输入信号, 载波, 以及调制输出 subplot(3,1,1); plot(t,input,LineWidth,3);xlabel(时间 t);ylabel(被调信号); subplot(3,1,2); plot(t,carrier,LineWidth,3);xlabel(时间 t);ylabel(载波); subplot(3,1,3); plot(t,output,LineWidth,3);xlabel(时间 t);ylabel(调幅输出); % ch2example1prg2.m clear; % 清空内存变量,以避免以往运行的结果影响本程序 dt=1e-5; % 仿真采样间隔 T=3*1e-3; % 仿真终止时间 t=0:dt:T; for k=1:length(t) % 基于时间流的仿真计算 input(k)

文档评论(0)

1亿VIP精品文档

相关文档