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

📄 ex5_1.m

📁 经典《信号与系统》教程的matlab例程,对深入理解信号与系统相关概念有很大帮助
💻 M
字号:
%
%
%
clear;
w0=-50;
w1=50;
w=w0:0.01:w1;
t=0:0.01:6;
L=input('input the value of L:');
C=input('input the value of C:');
wc=1/sqrt(L*C);
H=sqrt(1./(((1-(w/wc).^2).^2+(w/wc).^2)));
phi=-57.3*atan((w/wc)./((1-(w/wc).^2)+eps));
h=2*wc/sqrt(3)*exp(-0.5*wc*t).*sin(0.866*wc*t);

clf;
subplot(3,1,1)
plot(w,H);grid on;title('the magnitude response');
subplot(3,1,2)
plot(w,phi);grid on;title('the phase response');
subplot(3,1,3)
plot(t,h);grid on;title('the impulse response')

⌨️ 快捷键说明

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