|
楼主 |
发表于 2010-4-20 09:49
|
显示全部楼层
chebwin.m的源文件是下面这样的。他的最后一行是w = chebwinx(n,r);我单步运行后,通过这一步,感觉像是一个赋值语句,本来是空值的w得到了一个281*1的赋值。可是并没有chebwinx.m这个文件。
function w = chebwin(n_est, r)
%CHEBWIN Chebyshev window.
% CHEBWIN(N) returns an N-point Chebyshev window in a column vector.
%
% CHEBWIN(N,R) returns the N-point Chebyshev window with R decibels of
% relative sidelobe attenuation. If omitted, R is set to 100 decibels.
%
% See also GAUSSWIN, KAISER, TUKEYWIN, WINDOW.
% Author: James Montanaro
% Reference: E. Brigham, "The Fast Fourier Transform and its Applications"
% Copyright 1988-2005 The MathWorks, Inc.
% $Revision: 1.19.4.1 $ $Date: 2005/06/30 17:36:33 $
error(nargchk(1,2,nargin));
% Default value for R parameter.
if nargin < 2 || isempty(r),
r = 100.0;
end
[n,w,trivialwin] = check_order(n_est);
if trivialwin, return, end;
if r < 0,
error('Attenuation must be specified as a positive number.');
end
w = chebwinx(n,r);
% [EOF] chebwin.m |
|