www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgoptimrunner/getFixedValues.m
function data = getFixedValues(obj, RunIdx) %GETFIXEDVALUES Get fixed value data. % % DATA = GETFIXEDVALUES(OBJ) returns the fixed values for the current % run. % % DATA = GETFIXEDVALUES(OBJ, RUNIDX) returns the fixed values for the % specified runs. % Copyright 2005 The MathWorks, Inc. if nargin<2 RunIdx = obj.RunIndices(obj.CurrentRun); end FixedVarIndices = setdiff(1:length(obj.InputDataLengths), obj.FreeVariableIndices); data = obj.InputData(FixedVarIndices); for n = 1:length(data) data{n} = data{n}(RunIdx, :); end