www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cglookup/cglookup.m

    function LU = cglookup(name)
%CGLOOKUP Constructor for cglookup class
%
%  This is an abstract class and should not be instantiated except by
%  children of cglookup.

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


if nargin && isstruct(name)
    e = name.cgexpr;
    LU = mv_rmfield(name, 'cgexpr');
else
    LU = struct('table',[], ...
        'sizelocks', guidarray(0), ...
        'version', 6, ...
        'ExtrapolationMask', true(0), ...
        'ExtrapolationRegions', true(0),...
        'UseLocksInExtrapolation',true,...
        'UserData',[]);
    e = cgexpr;
    if nargin
        e = setname(e, name);
    end
end

LU = class(LU,'cglookup',e);