《信号与线性系统课程设计》由会员分享,可在线阅读,更多相关《信号与线性系统课程设计(46页珍藏版)》请在毕设资料网上搜索。
1、答案 信号与线性系统 课程设计 班级: 学号: 姓名: - 2 - 目目 录录 实验一实验一 连续信号的时域分析连续信号的时域分析 3 3 实验二实验二 连续时间系统的时域分析连续时间系统的时域分析 8 8 实验三实验三 连续信号的频域分析连续信号的频域分析 1414 实验四实验四 连续系统的频域分析连续系统的频域分析 2 22 2 实验五实验五 信号采样与重建信号采样与重建 3333 实验六实验六 离散时间信号和系统分析离散时间信号和系统分析 3939 实验总结实验总结 4646 - 3 - 实验一 连续信号的时域分析 一、实验目的 1、熟悉MATLAB 软件。 2、掌握常用连续信号与离散信
2、号的MATLAB 表示方法。 二、实验设备 安装有matlab6.5 以上版本的PC 机一台。 三、实验原理 四、实验内容 1、用MATLAB表示连续信号: t A e ,Acos(0 t + ),Asin(0 t + )。 源程序: clc clear close syms t; f1=2*exp(t); f2=2*cos(3*t+4); f3=2*sin(3*t+4); subplot(2,2,1); ezplot(f1,-10,2); xlabel(t); title(f(t)=2et); grid on; subplot(2,2,2); ezplot(f2,-5,5); xlabel(
3、t); - 4 - title(f(t)=2cos(3t+4); grid on; subplot(2,2,3); ezplot(f3,-5,5); xlabel(t); title(f(t)=2sin(3t+4); grid on -10-50 0 2 4 6 t f(t)=2et -505 -2 -1 0 1 2 t f(t)=2cos(3t+4) -505 -2 -1 0 1 2 t f(t)=2sin(3t+4) 2、 用MATLAB表示抽样信号(sinc(t)、 矩形脉冲信号(rectpuls(t, width) 及三角脉冲信号(tripuls(t, width, skew)。 源程
4、序: clc clear close t=-5:0.01:5; f1=sinc(t); f2=3*rectpuls(t,4); f3=3*tripuls(t,4,0); subplot(2,2,1); plot(t,f1); xlabel(t); title(f(t)=sinc(t); - 5 - grid on; subplot(2,2,2) plot(t,f2); xlabel(t); title(f(t)=3rectpuls(t,4); grid on; axis(-5,5,-1,4); subplot(2,2,3); plot(t,f3); xlabel(t); title(f(t)=
5、3rectpuls(t,4,0); grid on; axis(-5,5,-1,4); -505 -0.5 0 0.5 1 t f(t)=sinc(t) -505 -1 0 1 2 3 4 t f(t)=3rectpuls(t,4) -505 -1 0 1 2 3 4 t f(t)=3rectpuls(t,4,0) 3、编写如图3 的函数并用MATLAB 绘出满足下面要求的图形。 (1) f (t); (2) f (t 2); (3) f (1 2t); (4) f (0.5t + 1). - 6 - 源程序: clc clear close t1=-14:0.05:2; t2=0:0.05:16; t=-6.5:0.05:1.5; t4=-6:0.05:26; f1=4*rectpuls(-t1-6,12)+3*tripuls(-t1-6,4,0); f2=4*rectpuls(t2-8,12)+3*tripuls(t2-8,4,0); f3=4*rectpuls(1-2*t-6,12)+3*tripuls(1-2*t-6,4,0); f4=4*rectpuls(0.5*t4+1-6,12)+3*tripuls(0.5*t4+1-6,4,0); subplot(2,2,1); plot(t1,f1); xlab