📄 exa1_45.m
字号:
% exa1-45_transfer_function_reponse.m for example 1-45
% transfer function reponse
clear all;
fs=1000; %sample frequency unit in Hz
b=[0.3 0.2]; %sytem parameter
a=[1 -0.4 -0.7]; %sytem parameter
[h, f]=freqz(b, a, 256, fs);
mag=abs(h); %compute magnitude
ph=angle(h); %compute phase
ph=ph*180/pi; %unit in degrees
subplot(211)
plot(f,mag)
grid
xlabel('frequency(Hz)');
ylabel('magnitude');
subplot(212)
plot(f,ph)
grid
xlabel('frequency(Hz)');
ylabel('phase');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -