function varargout = rfparam(varargin) %#ok<STOUT>
%RFPARAM Get a vector of data from a network parameter object
%   DIJ = RFPARAM(OBJ,I,J) returns a column vector DIJ which represents the
%   (I,J)th value of network parameter OBJ at all frequencies.  I and J
%   must be positive integers with a value less than or equal to the number
%   of ports in OBJ.  OBJ must be a network parameter object with the
%   following types: sparameters, tparameters, yparameters, zparameters,
%   hparameters, gparameters, or abcdparameters.
%
%   DIJ = RFPARAM(ABCD_OBJ,FLAG) allows the user to access the data in an
%   abcdparameters object using a character flag: 'A','B', etc.  ABCD_OBJ
%   must be an abcdparameters object containing 2-port data, and FLAG must
%   be a character array with one of the following values: 'A','B','C', or
%   'D'.
%
%   Note that:
%       DIJ = RFPARAM(OBJ,I,J)
%   is equivalent to
%       DIJ = squeeze(OBJ.Parameters(I,J,:));
%
%EXAMPLES:
%   % Read in the file 'default.s2p' into an sparameters object
%   S = sparameters('default.s2p');
%
%   % Get the S21 value
%   s21 = rfparam(S,2,1)
%
%   See also sparameters, rfplot, rfinterp1

%   Copyright 2012-2023 The MathWorks, Inc.

narginchk(1,Inf)

error(message('MATLAB:UndefinedFunctionTextInputArgumentsType',         ...
    'rfparam',class(varargin{1})))