水吧 关注:84,226贴子:3,086,513
  • 1回复贴,共1

啊啊啊啊啊

只看楼主收藏回复

clear all;w = -4*pi:8*pi/511:4*pi;num = [2 1];den = [1 -0.6];h = freqz(num, den, w);subplot(2, 1, 1) ; plot(w/pi, real(h) ); grid; title('实部')xlabel('omega^pi'); ylabel('振幅');subplot(2, 1, 2) ; plot(w/pi, imag(h));grid; title('虚部')xlabel('omega^pi'); ylabel('振幅');figure;subplot(2,1, 1) ; plot(w/pi, abs(h));grid; title('幅度谱 ')xlabel('omega^pi'); ylabel('振幅');subplot(2, 1, 2) ; plot(w/pi,angle(h));grid; title('相位谱')xlabel('omega^pi'); ylabel('以弧度为单位的相位');


来自Android客户端1楼2023-04-22 15:02回复


    IP属地:福建来自Android客户端2楼2023-04-22 17:04
    回复