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

📄 c9ex14.m

📁 连续与离散信号系统的Matlab仿真示例代码.
💻 M
字号:
f = [0 0.2 0.22 0.5 0.52 1];            % Specify f vector       m = [1 1 0.4 0.4 0 0];                  % Specify amplitude responsen = 10;                                 % Specify order[b,a] = yulewalk(n,f,m);                % Compute transfer function[h,w] = freqz(b,a,512);                 % Determine filter responsesubplot(2,1,1)                          % Designate first subplotplot(f/2,m,w/(2*pi),abs(h),'--')   % Plot amplitude responsexlabel('Normalized Frequency - r')      % Label x-axisylabel('Amplitude')                     % Label y-axisphase = angle(h);                       % Calculate phasephase = unwrap(phase);                  % Unwrap phasephasedeg = phase*180/pi;                % Express phase in degreessubplot(2,1,2)                          % Designate second subplotplot(w/(2*pi),phasedeg,'--')           % Plot phase responsexlabel('Normalized Frequency - r')      % Label x-axisylabel('Phase - degrees')               % Label y-axis

⌨️ 快捷键说明

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