⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex0302.asv

📁 数字信号处理(机械工业出版社)的源码
💻 ASV
字号:
% Chapter 3: Example 3.4:%  DTFT of finite duration seq using mat-vec operation% [0, pi] axis divided into 501 points.%n = -1:3; x = 1:5; k = 0:500;[X,w] = dtft(x,n,k);          X = x * (exp(-j*pi/500)) .^ (n'*k); % DTFT using matrix-vector productmagX = abs(X); angX = angle(X);realX = real(X); imagX = imag(X);subplot(2,2,1); plot(w/pi,magX); gridxlabel('frequency in pi units'); title('Magnitude Part'); ylabel('Magnitude')subplot(2,2,3); plot(w/pi,angX); gridxlabel('frequency in pi units'); title('Angle Part'); ylabel('Radians')subplot(2,2,2); plot(w/pi,realX); gridxlabel('frequency in pi units'); title('Real Part'); ylabel('Real')subplot(2,2,4); plot(w/pi,imagX); gridxlabel('frequency in pi units'); title('Imaginary Part'); ylabel('Imaginary')%print -deps ex030400.eps

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -