www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimtablefiller/setFillFn.m
function otf = setFillFn(otf, fillfnname) %SETFILLFN Set the fill function % % OTF = SETFILLFN(OTF, FILLFNNAME) sets the fill function in the table % filler object. The fill function is set to be the one from the list of % all possible fill functions ([EXTRAPOLATE, DIRECT, ANY FOUND IN % EXTENSIONS, ANY FOUND IN MBCPREFS.TABLES.FILLFUNCTIONS]) that matches % FILLFNNAME by name. % Copyright 2005-2009 The MathWorks, Inc. and Ford Global Technologies, Inc. % Find the named fill function if ischar(fillfnname) fillfn = pGetNamedFillFn(fillfnname); else fillfn = fillfnname; end % Set the fill function if possible if ~isempty(fillfn) otf.fillfn = fillfn; end