里面的 相关函数 gencoswin.m
function [w,msg,msgobj] = gencoswin(varargin)
%GENCOSWIN Returns one of the generalized cosine windows.
% GENCOSWIN returns the generalized cosine window specified by the
% first string argument. Its inputs can be
% Window name - a string, any of 'hamming', 'hann', 'blackman'.
% N - length of the window desired.
% Sampling flag - optional string, one of 'symmetric', 'periodic'.
% Copyright 1988-2013 The MathWorks, Inc.
% Parse the inputs
window = varargin{1};
% Cast to enforce Precision Rules
n = signal.internal.sigcasttofloat(varargin{2},'double','gencoswin','N',...
'allownumeric');
msg = '';
msgobj = [];
% Check for trivial orders
[n,w,trivialw