求教:为什么加窗就出错,错误我已列出,请求指点
h2=window(17,'hamming');??? Error using ==> feval
Argument must contain a string or function_handle.
Error in ==> window at 52
w = feval(wname,N,varargin{:}); function varargout = window(wname,N,varargin)
函数原型如上,你在输入时少给了一个参数wname.
看看matlab里的例子
EXAMPLE:% N= 65;
% w= window(@blackmanharris,N);
% w1 = window(@hamming,N);
% w2 = window(@gausswin,N,2.5);
% plot(1:N,); axis();
% legend('Blackman-Harris','Hamming','Gaussian');
谢谢
页:
[1]