《DSP using MATLAB》示例 Example 6.25
生活随笔
收集整理的這篇文章主要介紹了
《DSP using MATLAB》示例 Example 6.25
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
代碼:
% x = [-0.9, 0.81]; [y, L, B] = QCoeff(x, 3) % Unquantized parameters r = 0.9; theta = pi/3; a1 = -2*r*cos(theta); a2 = r*r; p1 = r*exp(j*theta); p2 = p1';% Quantized parameters: N = 3; [ahat, L, B] = QCoeff([a1, a2], 3); rhat = sqrt(ahat(2)); thetahat = acos(-ahat(1)/(2*rhat)); p1hat = rhat*exp(j*thetahat); p2 = p1';% Changes in pole locations Dp1 = abs(p1 - p1hat) Dp1 = 0.0344
運行結果:
?
轉載于:https://www.cnblogs.com/ky027wh-sx/p/6601448.html
總結
以上是生活随笔為你收集整理的《DSP using MATLAB》示例 Example 6.25的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java Class SecurityM
- 下一篇: Java中的static关键字的用法