www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/mbcpointer.m
function output = mbcpointer(varargin) %MBCPOINTER Create arrays of type xregpointer % % MBCPOINTER(DIMS) creates a pointer array of the specified size. % % FCN = MBCPOINTER 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 = @i_nullpointer; end if nargin output = null(xregpointer, varargin{:}); else output = fcnH; end function array = i_nullpointer(varargin) array = null(xregpointer, varargin{:});