www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffExecutor/setPointValues.m
function setPointValues(obj) %SETPOINTVALUES Set inputs to match current tradeoff point % % SETPOINTVALUES(OBJ) sets the inputs of the tradeoff to match the current % tradeoff point. This function will set all hidden and table inputs to % their saved/selected point values and set all active inptus to their % candidate values. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % Set passive inputs if ~isempty(obj.pPassiveInputs) passign(obj.pPassiveInputs, ... parrayeval(obj.pPassiveInputs, ... @setvalue, ... {obj.PassiveValues})); end % Set table inputs if ~isempty(obj.pTableInputs) passign(obj.pTableInputs, ... parrayeval(obj.pTableInputs, ... @setvalue, ... {obj.TableValues})); end % Set active inputs if ~isempty(obj.pInputs) passign(obj.pInputs(obj.IsBaseInput), ... parrayeval(obj.pInputs(obj.IsBaseInput), ... @setvalue, ... {num2cell(obj.Values(obj.IsBaseInput))})); end