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

    function output = mbccell(varargin)
%MBCCELL Create arrays of type cell
%
%  MBCCELL(DIMS) creates a cell array of the specified size.
%
%  FCN = MBCCELL 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 = @cell;
end

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