A: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y);
B: x = ones(1,4);nh =0:2;h = (nh+1) ones(1,3);n=0:5;y=conv(x,h);stem(n,y);
C: x = ones(1,5);nh =0:2;h = (nh+1). ones(1,3);n=0:6;y=conv(x,h);stem(n,y);
举一反三
- 下面哪段语句不会报错? A: x = [1 2 3];h = ones(1,5);n=0:7;y=conv(x,h);stem(n,y); B: x = ones(1,4);nh =0:2;h = (nh+1) ones(1,3);n=0:5;y=conv(x,h);stem(n,y); C: x = ones(1,5);nh =0:2;h = (nh+1). ones(1,3);n=0:6;y=conv(x,h);stem(n,y);
- 以下程序的输出结果是( )。 struct HAR { int x, y; struct HAR *p;} h[2]; main(){ h[0].x=1; h[0].y=2; h[1].x=3; h[1].y=4; h[0].p=&h[1]; h[1].p=h; printf("%d %d\n",(h[0].p)->x,(h[1].p)->y); }
- 设X ~ N ( 0 , 1 ),Y ~ N ( 0 , 1 ),且X与Y相互独立,则D(X – Y) = ( ). A: 1 B: 2 C: 3 D: 4
- 已知序列x(n)={1,2,3} ,h(n) ={1,1,1},n=0,1,2。y()是x()和h()的线性卷积, y(2)=( )。 A: 1 B: 3 C: 5 D: 6
- 【单选题】分段函数: ,下面程序段中正确的是__________。 A. If x < 0 Then y = 0 If x < 1 Then y = 1 If x < 2 Then y = 2 If x >= 2 Then y = 3 B. If x >= 2 Then y = 3 If x >= 1 Then y = 2 If x > 0 Then y = 1 If x < 0 Then y = 0 C. If x < 0 Then y = 0 ElseIf x > 0 Then y = 1 ElseIf x > 1 Then y = 2 Else y = 3 End If D. If x > =2 Then y = 3 ElseIf x > =1 Then y = 2 ElseIf x > =0 Then y = 1 Else y = 0 End If
内容
- 0
下面程序段中正确的是( )。 A: If x<0 Then y=0 If x<1 Then y=1 If x<2 Then y=2 If x>=2 Then y=3 B: If x>=2 Then y=3 If x>1 Then y=2 If x>=0Then y=1 If x>0 Then y=0 C: If x<0 Then y=0 Else If>=0Then y=1 Else y=3 End If D: If x>=2 Then y=3 Else If>=1 Then y=2 Else y=0 End If
- 1
已知一个序列x(n)的z变换X(z)定义成[img=140x46]17e0bb90d234a43.jpg[/img]已知某数字系统的[img=191x22]17e0bb91a52fc70.jpg[/img],则单位脉冲响应h(n)= A: h(n)={1, 2, 0, 2, 1} , 0≤n≤4 B: h(n)={1, 2, 2, 1} , 0≤n≤3 C: h(n)={1, 2, 0, 2, 1} , 1≤n≤4 D: h(n)={1, 2, 2, 1} , 1≤n≤4
- 2
已知一个序列x(n)的z变换X(z)定义成[img=140x46]17e4422545608da.jpg[/img]已知某数字系统的[img=191x22]17e442257956284.jpg[/img],则单位脉冲响应h(n)= A: h(n)={1, 2, 0, 2, 1} , 0≤n≤4 B: h(n)={1, 2, 2, 1} , 0≤n≤3 C: h(n)={1, 2, 0, 2, 1} , 1≤n≤4 D: h(n)={1, 2, 2, 1} , 1≤n≤4
- 3
设随机变量X和Y相互独立且X~N(0,1),Y~N(1,1),则( ). A: P{X + Y £ 0} = 1/2 B: P{X + Y £ 1} = 1/2 C: P{X - Y £ 0} = 1/2 D: P{X - Y £ 1} = 1/2
- 4
Consider the following sequence: x(n)={3,-6,5,-1,0,7,8}, -1≤n≤5.suppose the sequence y(n)=x(-n-2),then y(0)=______ , y(-2)=______ , y(-4)=______ , y(-6)=______ , y(2)=______ .