声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2608|回复: 1

[编程技巧] 求助 y=filter(a,b,x);是什么意思

[复制链接]
发表于 2006-6-5 10:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
用MATLAB计算差分方程<p> </p>
<P  align=left>           <IMG src="http://jwc.seu.edu.cn/zq/signal/new/MATLAB/MATLAB20.gif"> <p></p></P>
<P  align=left>当输入序列为<IMG src="http://jwc.seu.edu.cn/zq/signal/new/MATLAB/MATLAB21.gif"> 时的输出结果<IMG src="http://jwc.seu.edu.cn/zq/signal/new/MATLAB/MATLAB22.gif"> 。<p> </p></P>
<P ><B >解</B> MATLAB程序如下:<p> </p></P>
<P >                   N=41;</P>
<P >                   a=[0.8 -0.44 0.36 0.22];</P>
<P >                   b=[1 0.7 -0.45 -0.6];</P>
<P >                   x=[1 zeros(1,N-1)];</P>
<P >                   k=0:1:N-1;</P>
<P >                   y=filter(a,b,x);</P>
<P >                   stem(k,y)</P>
<P >                   xlabel('n');ylabel('幅度')<BR><BR><BR>y=filter(a,b,x);是什么意思<BR></P>
回复
分享到:

使用道具 举报

发表于 2006-6-5 12:01 | 显示全部楼层
y = filter(b,a,X) filters the data in vector X with the filter described by numerator coefficient vector b and denominator coefficient vector a. If a(1) is not equal to 1, filter normalizes the filter coefficients by a(1). If a(1) equals 0, filter returns an error. <BR><FONT color=#ff0000>If X is a matrix, filter operates on the columns of X. If X is a multidimensional array, filter operates on the first nonsingleton dimension.<BR><BR>建议此类问题请您先自己用help或者doc来自己查看。<BR></FONT><BR>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-25 13:14 , Processed in 0.057721 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表