Matlab使用初步及信号描述与变换
9.1 Matlab使用初步及信号描述与变换
(1)弄清原理,说明信号描述、信号运算及变换方法。
描述信号的基本方法是写出它的数学表达式,该表达式是一个或若干个自变量的函数或序列的形式。
信号运算有:信号的叠加与相乘、信号的反褶、信号的时间平移、信号的时间展缩、卷积运算等。
(2)编写程序
syms t;
f1 = sym('3*sin(pi / 2 * t)');
subplot(4,3,1),ezplot(f1,[-5,5]),grid on
f2 = sym('3*sin(pi * t)');
subplot(4,3,2),ezplot(f2,[-5,5]),grid on
f3 = sym('3*sin(3 * pi / 2 * t)');
subplot(4,3,3),ezplot(f3,[-5,5]),grid on
f4 = subs(f1,t,-t);
subplot(4,3,4),ezplot(f4,[-5,5]),grid on
f5 = subs(f2,t,-t);
subplot(4,3,5),ezplot(f5,[-5,5]),grid on
f6 = subs(f3,t,-t);
subplot(4,3,6),ezplot(f6,[-5,5]),grid on
f7 = subs(f1,t,t-2);
subplot(4,3,7),ezplot(f7,[-5,5]),grid on
f8 = subs(f2,t,t-2);
subplot(4,3,8),ezplot(f8,[-5,5]),grid on
f9 = subs(f3,t,t-2);
subplot(4,3,9),ezplot(f9,[-5,5]),grid on
f10 = subs(f1,t,1-2*t);
subplot(4,3,10),ezplot(f10,[-5,5]),grid on
f11 = subs(f2,t,1-2*t);
subplot(4,3,11),ezplot(f11,[-5,5]),grid on
f12 = subs(f3,t,1-2*t);