Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

gparameters

Create hybrid-g parameter object

Syntax

hg = gparameters(filename)
hg = gparameters(hnet)
hg = gparameters(data,freq)
hg = gparameters(rftbxobj)

Description

example

hg = gparameters(filename) creates a hybrid-g parameter object hg by importing data from the Touchstone file specified by filename. All data is stored in real/imag format.

hg = gparameters(hnet) creates a hybrid-g parameter object from the RF Toolbox™ network parameter object hnet.

hg = gparameters(data,freq) creates a hybrid-g parameter object from the g-parameter data, data, and frequencies, freq.

hg = gparameters(rftbxobj) extracts network data from rftbxobj and converts it into G-parameter data.

Examples

collapse all

Read the file default.s2p as g-parameters and extract G11.

g = gparameters('default.s2p')
g11 = rfparam(g,1,1);
g = 

  gparameters: g-parameters object

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

  rfparam(obj,i,j) returns g-parameter gij

Input Arguments

collapse all

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

Touchstone data file, specified as a character vector, 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: hg = gparameters('defaultbandpass.s2p');

Hybrid-g 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 hg.

Network parameter data, specified as a scalar handle. If hnet is a hybrid-g parameter object, then hg is a deep copy of hnet. Otherwise, the function performs a network parameter conversion to create hg. 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.

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

Output Arguments

collapse all

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

  • Frequencies — Hybrid-g 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-g parameter data, specified as an N-by-N-by-K array of complex numbers. The function sets this property from the filename or data input arguments.

Introduced in R2012b

Was this topic helpful?