DSP using MATLAB 示例Example3.1 3.2 3.3
生活随笔
收集整理的這篇文章主要介紹了
DSP using MATLAB 示例Example3.1 3.2 3.3
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?
上代碼:
w = [0:1:500]*pi/500; % [0,pi] axis divided into 501 points. X = exp(j*w) ./ (exp(j*w) - 0.5*ones(1,501));magX = abs(X); angX = angle(X); realX = real(X); imagX = imag(X);set(gcf,'Color','white'); subplot(2,2,1); plot(w/pi,magX); grid on; title('Magnitude Part'); xlabel('frequency in \pi units'); ylabel('Magnitude'); subplot(2,2,3); plot(w/pi, angX); grid on; title('Angle Part'); xlabel('frequency in \pi units'); ylabel('Radians'); subplot('2,2,2'); plot(w/pi, realX); grid on; title('Real Part'); xlabel('frequency in \pi units'); ylabel('Real'); subplot('2,2,4'); plot(w/pi, imagX); grid on; title('Imaginary Part'); xlabel('frequency in \pi units'); ylabel('Imaginary');運行結果:
?
轉載于:https://www.cnblogs.com/ky027wh-sx/p/6041381.html
總結
以上是生活随笔為你收集整理的DSP using MATLAB 示例Example3.1 3.2 3.3的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GOF之桥接模式
- 下一篇: HDU 2444:The Accomod