hparameters

Create hybrid parameter object

Syntax

  • hh = hparameters(filename) example
  • hh = hparameters(hnet)
  • hh = hparameters(data,freq)
  • hh = hparameters(rftbxobj)

Description

example

hh = hparameters(filename) creates a hybrid parameter object hh by importing data from the Touchstone file specified by filename.

hh = hparameters(hnet) creates a hybrid parameter object from the RF Toolbox™ network parameter object hnet.

hh = hparameters(data,freq) creates a hybrid parameter object from the hybrid parameter data, data, and frequencies, freq.

hh = hparameters(rftbxobj) extracts network data from rftbxobj and converts it into H-parameter data.

Examples

Read File as H-parameters, Extract H11

Read the file default.s2p as h-parameters

 h = hparameters('default.s2p')
h = 

  hparameters: h-parameters object

       NumPorts: 2
    Frequencies: [191x1 double]
     Parameters: [2x2x191 double]

  rfparam(obj,i,j) returns h-parameter hij

Extract parameter h11

 h11 = rfparam(h,1,1);

Input Arguments

expand all

data — Hybrid parameter dataarray of complex numbers

Hybrid parameter data, specified as array of complex numbers, of size 2-by-2-by-K. The function uses this input argument to set the value of the Parameters property of hh.

filename — Touchstone data filestring

Touchstone data file, specified as a string, that contains network parameter data. filename can be the name of a file on the MATLAB® path or the full path to a file.

Example: hh = hparameters('defaultbandpass.s2p');

freq — Hybrid parameter frequenciesvector of positive numbers

Hybrid parameter frequencies, specified as a vector of positive real numbers, sorted from smallest to largest. The function uses this input argument to set the value of the Frequencies property of hh.

hnet — Network parameter datascalar handle

Network parameter data, specified as a scalar handle. If hnet is a hybrid parameter object, then hh is a deep copy of hnet. Otherwise, the function performs a network parameter conversion to create hh. When converting network parameters, the same restrictions apply as those for RF Toolbox network parameter data conversion functions:

  • ABCD parameter objects support 2N-port data.

  • Hybrid-g parameter objects support 2-port data.

  • Hybrid parameter objects support 2-port data.

  • S-parameter objects support N-port data.

  • Y-parameter objects support N-port data.

  • Z-parameter objects support N-port data.

rftbxobj — network objectscalar handle

Network object, specified as scalar handle. Specify rftbxobj as one of the following types: rfdata.data, rfdata.network, and any analyzed rfckt type.

Output Arguments

expand all

hh — Hybrid parameter datascalar handle

Hybrid parameter data, returned as a scalar handle. disp(hh) returns the properties of the object:

  • Frequencies — Hybrid parameter frequencies, specified as a K-by-1 vector of positive real numbers sorted from smallest to largest. The function sets this property from the filename or freq input arguments.

  • Parameters — Hybrid parameter data, specified as a 2-by-2-by-K array of complex numbers. The function sets this property from the filename or data input arguments.

Was this topic helpful?