一鱼 发表于 2006-6-5 10:13

求助 y=filter(a,b,x);是什么意思

用MATLAB计算差分方程<p> </p>
<Palign=left>         <IMG src="http://jwc.seu.edu.cn/zq/signal/new/MATLAB/MATLAB20.gif"> <p></p></P>
<Palign=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=;</P>
<P >                   b=;</P>
<P >                   x=;</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>

cdwxg 发表于 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>
页: [1]
查看完整版本: 求助 y=filter(a,b,x);是什么意思