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

📄 page_414.asv

📁 Signal and Sytem Using Matlab 书的源代码 注释详尽 m文件
💻 ASV
字号:
% Example 10.7
% 巴特沃思双
numd = [0.0309 0.0619 0.0309];  % define digital filter
dend = [1 -1.444 0.5682];
n = 0:80;
T = 0.2;
x = 1 + cos(n*T) + cos(5*n*T);   % sampled input, x[n]
y = filter(numd,dend,x);
clf  % clears figure
subplot(211),stem(n,x(1:length(n)));  % sampled input, x[n]
xlabel('n')
ylabel('x[n]')
title('Figure 10.10')
subplot(212),stem(n,y(1:length(n)));  % filter output, y[n]
xlabel('n')
ylabel('y[n]')
pause
% plot x(t) with smaller resolution
t = 0:.06:15;
xa = 1 + cos(t) + cos(5*t);
subplot(211), plot(t,xa);  % analog input, x(t)
xlabel('Time (sec)')
ylabel('x(t)')
title('Figure 10.11')
subplot(212),plot(n*T,y);  % output of ideal reconstructor
xlabel('Time (sec)')
ylabel('y(t)')
subplot(111)

⌨️ 快捷键说明

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