www.gusucode.com > signal 工具箱matlab源码程序 > signal/+fdesign/@abstracttypewspecs/getfmethod.m

    function hfmethod = getfmethod(this, methodname)
%GETFMETHOD   Get the fmethod.

%   Copyright 2005 The MathWorks, Inc.

% If we are passed a string, we assume that it is the name of the design
% method instead of the design method object.
if ischar(methodname) && isdesignmethod(this, methodname)
    hfmethod = feval(getdesignobj(this.CurrentSpecs, methodname));
elseif ~(isa(methodname,'fmethod.abstractdesign'))
    error(message('signal:fdesign:abstracttypewspecs:getfmethod:InvalidMethod', methodname));
else
    hfmethod = methodname;
end

% [EOF]