www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@sweepsetfilter/addSweepVariable.m
function obj = addSweepVariable(obj, varString, varUnit) %ADDSWEEPVARIABLE Add a new sweep variable definition % % SSF = ADDSWEEPVARIABLE(SSF, VAREXPR, UNIT) adds a new sweep variable to % the sweepsetfilter. % Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc. if nargin < 3 varUnit = ''; end % Parse the string into the internal format obj.sweepVariables(end+1) = parseVariableString(varString, varUnit); % Update the object with the last variable obj = updateSweepVariables(obj, [], length(obj.sweepVariables));