首页 > 其他 > 详细

DSP using MATLAB 示例 Example3.15

时间:2016-11-18 22:12:31      阅读:230      评论:0      收藏:0      [点我收藏+]

技术分享

上代码:

subplot(1,1,1);
b = 1; a = [1, -0.8];
n = [0:100]; x = cos(0.05*pi*n);
y = filter(b,a,x);

figure(‘NumberTitle‘, ‘off‘, ‘Name‘, ‘Input and Output sequence‘);
set(gcf,‘Color‘,‘white‘); 
subplot(2,1,1); stem(n,x); title(‘Input sequence‘);  xlabel(‘n‘); ylabel(‘x(n)‘); grid on;
subplot(2,1,2); stem(n,y); title(‘Output sequence‘); xlabel(‘n‘); ylabel(‘y(n)‘); grid on;

结果:

技术分享  

 

DSP using MATLAB 示例 Example3.15

原文:http://www.cnblogs.com/ky027wh-sx/p/6078865.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!