www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffkeytable/cgtradeoffkeytable.m
function obj = cgtradeoffkeytable %CGTRADEOFFKEYTABLE Construct a new cgtradeoffkeytable object % % OBJ = CGTRADEOFFKEYTABLE constructs an empty tradeoff key table object. % This object is used internally by tradeoff to manage a list of ID keys % that link together saved data and table cells. % Copyright 2000-2008 The MathWorks, Inc. and Ford Global Technologies, Inc. % The DataKeyTable holds an (n-by-3) array of numbers. Column 1 is a key % that is formed by constructing the linear index of a table cell. This % column may have zeros for entries that do not have a corresponding table % cell. Column 2 contains unique numbers that are used as keys when saving % data in variable stores. Column 3 contains a counter that is % incremented every time tradeoff saves inputs against that data key. s = struct('DataKeyTable', uint32(zeros(0, 3)), ... 'NextDataKeyNumber', 1, ... 'TableSize', []); obj = class(s, 'cgtradeoffkeytable');