www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/mbcuint8.m
function output = mbcuint8(varargin) %MBCUINT8 Create arrays of type uint8 % % MBCUINT8(DIMS) creates a uint8 array of the specified size. % % FCN = MBCUINT8 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_uint8zeros; end if nargin output = zeros(varargin{:}, 'uint8'); else output = fcnH; end function array = i_uint8zeros(varargin) array = zeros(varargin{:}, 'uint8');