www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/mbcdouble.m

    function output = mbcdouble(varargin)
%MBCDOUBLE Create arrays of type double
%
%  MBCDOUBLE(DIMS) creates a double array of the specified size.
%
%  FCN = MBCDOUBLE returns a function handle that will generate arrays
%  given the desired size.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


persistent fcnH
if isempty(fcnH)
    fcnH = @zeros;
end

if nargin
    output = zeros(varargin{:});
else
    output = fcnH;
end