www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmeditor/setCorrectAxes.m
function ok = setCorrectAxes(obj, pTO) %SETCORRECTAXES Set the axes order to be correct for the tradeoff % % OK = SETCORRECTAXES(OBJ, PTO) selects that axes order that matches that % of the tables that are already in the tradeoff object PTO. The function % will return a true value if a valid axis order was found and false if % not. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. TO = pTO.info; if numTables(TO)==0 ok = true; else [unused, pInp] = getInputs(TO); strInp = pveceval(pInp, @getname); [ismemb, idx] = ismember(obj.SwitchInputs, strInp); if all(ismemb) ok = true; obj.AxisOrder = idx; else ok = false; end end