目录
1、信号的相乘波形
2、MATLAB代码实现
clear all;
clc;
lower = -3;
upper = 3;
step = 0.001;
t = lower:step:upper;
% Generate f1(t).
width = 3;
skew = -0.5;
y1 = tripuls(t,width,skew);
subplot(3,1,1); plot(t,y1,'k-');
xlabel('t'); ylabel('f_1(t)');
axis([lower,upper,-1.5,1.5]);
grid on;
% Generate f2(t).
omega = 2*pi*4;
y2 = sin(omega*t);
subplot(3,1,2); plot(t,y2,'b-');
xlabel('t'); ylabel('f_2(t)');
axis([lower