www.gusucode.com > rf 工具箱matlab源码程序 > rf/+rfckt/@amplifier/setop.m

    function varargout = setop(h, varargin)
%SETOP Set the operating conditions.
%   SETOP(H, CONDITION1, VALUE1, CONDITION2, VALUE2, ...) changes the
%   operating conditions of the data object, h, to those specified by the
%   condition/value pairs.
%
%   SETOP(H, CONDITION1) lists the available values for the specified
%   operating condition 'CONDITION1'.
%
%   SETOP(H) lists the available values for all operating conditions of the
%   object, h.
%
%   See also RFCKT.AMPLIFIER, RFCKT/GETOP

%   Copyright 2006-2007 The MathWorks, Inc.

error(nargoutchk(0, 1, nargout))

% Call the GETOP of data object
if ~isa(get(h, 'AnalyzedResult'), 'rfdata.data')
    setrfdata(h, rfdata.data);
end

if nargout == 1
    varargout{1} = setop(h.AnalyzedResult, varargin{:});
else % nargout == 0
    setop(h.AnalyzedResult, varargin{:});
end