通信原理实验,MATLAB仿真
通信原理实验,基于MATLAB的仿真t = 0:0.001:2; % give ten time units FS = 4; ts = 0:1/FS:2; Signal = sin(2*pi*t) + 0.5*cos(4*pi*t); % give a singn signal Sign_m = sin(2*pi*ts) + 0.5*cos(4*pi*ts); figure subplot(3,1,1) plot(t,Signal); title('sin(2*pi*t) + 0.5*cos(4*pi*t)'); subplot(3,1,2) stem(ts,Sign_m); title('4HZ采样波形'); subplot(3,1,3); plot(ts,Sign_m); title('抽样序列回复出的原始信号'); grid;
用户评论