www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffnode/getTable.m
function pT = getTable(obj, idx) %GETTABLE Return specified table from tradeoff % % TBL = GETTABLE(OBJ, INDEX) returns the table at the speicifed INDEX in % the tradeoff. INDEX must be between 1 and numTables(obj). pT is a % pointer to a table. % TBL = GETTABLE(OBJ, 'all') returns a pointer vector containing pointers % to all of the tables in the tradeoff. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if ischar(idx) if strcmp(idx, 'all') pT = obj.Tables; else error(message('mbc:cgtradeoffnode:InvalidIndex')); end else if idx>=1 && idx <=numTables(obj) pT = obj.Tables(idx); else error(message('mbc:cgtradeoffnode:InvalidIndex1')); end end