MATLAB机考样题带答案).docVIP

  • 49
  • 0
  • 约7.36千字
  • 约 7页
  • 2016-11-29 发布于贵州
  • 举报
MATLAB机考样题带答案)

MATLAB机考样题: (1)Generate and plot sequence , with. n1=-20:20; x1=2*cos(pi/8*n1); n2=n1-4; x2=2*cos(pi/8*n2); subplot(2,1,1); plot(n1,x1); subplot(212); plot(n2,x2); (2)Write a MATLAB program to compute and plot the impulse response of a causal finite-dimensional discrete-time system characterized by a difference equation of the following form: N=input(请输入你要求的点数N=); num=[1.8 0.34 -1.32 -0.86]; den=[1 0.3 0.5 -0.72]; x=[1 zeros(1,N-1)];(单位冲击) y=filter(num,den,x); plot(0:N-1,y); (3)Write a MATLAB program to compute and display the poles and zeros, to compute and display the second-order factor

文档评论(0)

1亿VIP精品文档

相关文档