《北航信号与系统第一次实验报告超级详细版》由会员分享,可在线阅读,更多相关《北航信号与系统第一次实验报告超级详细版(11页珍藏版)》请在金锄头文库上搜索。
1、信号与系统实验一连续时间系统卷积的数值计算实验目的1 加深对卷积概念及原理的理解;2 掌握借助计算机计算任意信号卷积的方法。实验原理卷积实验流程图源程序#include float u(float t)while(t=0) return(1);while(t0) return(0);float f1(float t)return(u(t+2)-u(t-2);float f2(float t)return(t*(u(t)-u(t-2)+(4-t)*(u(t-2)-u(t-4);main()float t,i,j,result=0;for(i=-2;i=6;i=i+0.1)result=0;for
2、(j=0;j=4;j=j+0.1)result+=f2(j)*f1(i-j)*0.1;printf(%.1ft%.2ft,i,result);printf (n);实验数据-2.0 0.00 -1.9 0.01 -1.8 0.03 -1.7 0.06 -1.6 0.10-1.5 0.15 -1.4 0.21 -1.3 0.28 -1.2 0.36 -1.1 0.45-1.0 0.55 -0.9 0.66 -0.8 0.78 -0.7 0.91 -0.6 1.05-0.5 1.20 -0.4 1.36 -0.3 1.53 -0.2 1.71 -0.1 1.900.0 2.10 0.1 2.29
3、0.2 2.47 0.3 2.64 0.4 2.800.5 2.95 0.6 3.09 0.7 3.22 0.8 3.34 0.9 3.451.0 3.55 1.1 3.64 1.2 3.72 1.3 3.79 1.4 3.851.5 3.90 1.6 3.94 1.7 3.97 1.8 3.99 1.9 4.002.0 4.00 2.1 3.99 2.2 3.97 2.3 3.94 2.4 3.902.5 3.85 2.6 3.85 2.7 3.79 2.8 3.72 2.9 3.643.0 3.55 3.1 3.45 3.2 3.34 3.3 3.22 3.4 3.093.5 2.95 3
4、.6 2.80 3.7 2.64 3.8 2.47 3.9 2.294.0 2.10 4.1 1.90 4.2 1.71 4.3 1.53 4.4 1.364.5 1.20 4.6 1.05 4.7 0.91 4.8 0.78 4.9 0.665.0 0.55 5.1 0.45 5.2 0.36 5.3 0.28 5.4 0.215.5 0.15 5.6 0.10 5.7 0.06 5.8 0.03 5.9 0.016.0 0.00绘制曲线总结实验二 连续时间系统的频率响应实验目的1 加深对连续时间系统频率响应理解;2 掌握借助计算机计算任意连续时间系统频率响应的方法实验源程序程序框图#inc
5、lude #include int m,n,u=0;float a1002,b1002;void laf()int i,o;printf(the number of zero point:n);scanf(%d,&m);printf(Laf the zero point.(x,y)n);for(i=1;i=m;i+)printf(%d:,i);scanf(%f,%f,&ai0,&ai1);printf(the number of pole point:n);scanf(%d:,&n);printf(input the pole points.(x,y)n);for(o=1;o0) t=pi+t
6、;return t;void main()float f,Ts=0.1,h,w,mo,ao;int e;laf();for(f=0;f=5;f=f+Ts)h=1;w=0;mo=1;ao=0;for(e=1;e=m;e+) h=h*r(ae0,ae1,f); w+=p(ae0,ae1,f); for(e=1;e=n;e+)mo=mo*r(be0,be1,f);ao+=p(be0,be1,f);h=h/mo;w=w-ao;printf(%.1f %5.3f %5.3f; ,f,h,w);u+ ;if(u%3=0)printf(n); printf(n);实验数据the number of zero
7、 point:1Laf the zero point.(x,y)1:0,0the number of pole point:2input the pole points.(x,y)1:2,1.52:2,-1.50.0 0.000 -4.712; 0.1 0.016 -4.648; 0.2 0.032 -4.584;0.3 0.048 -4.520; 0.4 0.064 -4.455; 0.5 0.079 -4.391;0.6 0.094 -4.325; 0.7 0.109 -4.260; 0.8 0.124 -4.194;0.9 0.138 -4.128; 1.0 0.152 -4.061;
8、1.1 0.164 -3.995;1.2 0.177 -3.928; 1.3 0.188 -3.862; 1.4 0.198 -3.795;1.5 0.208 -3.730; 1.6 0.217 -3.665; 1.7 0.224 -3.601;1.8 0.231 -3.538; 1.9 0.236 -3.476; 2.0 0.241 -3.416;2.1 0.244 -3.357; 2.2 0.247 -3.300; 2.3 0.249 -3.246;2.4 0.250 -3.193; 2.5 0.250 -3.142; 2.6 0.250 -3.093;2.7 0.249 -3.046;
9、2.8 0.248 -3.001; 2.9 0.246 -2.957;3.0 0.244 -2.916; 3.1 0.241 -2.877; 3.2 0.239 -2.839;3.3 0.236 -2.804; 3.4 0.233 -2.769; 3.5 0.230 -2.737;3.6 0.227 -2.706; 3.7 0.223 -2.676; 3.8 0.220 -2.647;3.9 0.217 -2.620; 4.0 0.213 -2.594; 4.1 0.210 -2.570;4.2 0.207 -2.546; 4.3 0.204 -2.523; 4.4 0.200 -2.501;
10、4.5 0.197 -2.481; 4.6 0.194 -2.461; 4.7 0.191 -2.441;4.8 0.188 -2.423; 4.9 0.185 -2.405; 5.0 0.182 -2.388;the number of zero point:2Laf the zero point.(x,y)1:2,1.52:2,-1.5the number of pole point:4input the pole points.(x,y)1:-0.5,-0.72:-0.5,0.73:-2.5,-24:-2.5,20.0 0.824 6.283; 0.1 0.828 6.034; 0.2
11、0.838 5.779;0.3 0.854 5.512; 0.4 0.869 5.227; 0.5 0.876 4.921;0.6 0.867 4.596; 0.7 0.831 4.259; 0.8 0.770 3.924;0.9 0.691 3.605; 1.0 0.608 3.311; 1.1 0.529 3.044;1.2 0.459 2.802; 1.3 0.400 2.581; 1.4 0.350 2.377;1.5 0.309 2.188; 1.6 0.275 2.010; 1.7 0.246 1.842;1.8 0.222 1.682; 1.9 0.202 1.529; 2.0 0.184 1.383;2.1 0.169 1.243; 2.2 0.156 1.108; 2.3 0.145 0.979;2.4 0.135 0.855; 2.5 0.126 0.736; 2.6 0.118 0.621;2