Engee documentation

gparameters

Creates an object of hybrid-g parameters.

Library

EngeeRF

Syntax

Function call

  • hg = gparameters(filename) — creates an object of hybrid-g parameters hg by importing data from the Touchstone file specified in filename.

  • hg = gparameters(hnet) — creates a hybrid-g parameter object from a network parameter object hnet.

  • hg = gparameters(data, freq) — creates a hybrid-g parameter object based on the hybrid-g parameter data data and frequencies freq.

  • hg = gparameters(rftbxobj) — extracts network data from rftbxobj and converts them into an object of hybrid-g parameters.

Arguments

Input arguments

# filename is a Touchstone file containing data about network parameters

+ character vector

Details

A Touchstone data file specified as a character vector containing data about network parameters.

# hnet — data about network parameters

+ scalar descriptor

Details

Network parameter data, set as a scalar descriptor. If hnet — an object of hybrid-g parameters, then hg — full copy hnet. Otherwise, the function performs a transformation of network parameters to create hg. When converting network parameters, the same restrictions apply as for the functions for converting network parameter data EngeeRF:

  • The ABCD parameter objects support data on ports.

  • Hybrid-g parameter objects support data on two ports.

  • Hybrid parameter objects support data on two ports.

  • S-parameter objects support data on ports.

  • Y-parameter objects support data on ports.

  • Z-parameter objects support data on ports.

  • T-parameter objects support data on two ports.

# data — data of hybrid-g parameters

+ an array of complex numbers

Details

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

# freq — frequencies of hybrid-g parameters

+ positive real vector

Details

The frequencies of the hybrid-g parameters are defined as a vector of positive real numbers sorted from smallest to largest. The function uses this input argument to set the value of the property. Frequencies for hg.

# rftbxobj — network object

+ scalar

Details

A network object specified as a scalar descriptor. A network parameter object can be one of the following types: rfdata.data, rfdata.network and any analyzed type rfckt.

Output arguments

# hg — hybrid-g parameter data

+ scalar descriptor

Details

Hybrid-g parameter data returned as a scalar descriptor. The object contains the following properties:

  • NumPorts — the number of ports as an integer. The function calculates this value automatically when creating an object.

  • Frequencies — frequencies of hybrid-g parameters in the form of a vector of size on positive real numbers sorted from smallest to largest. The function sets this property based on the arguments filename or freq.

  • Parameters — data of hybrid-g parameters in the form of an array of complex numbers of the size on on . The function sets this property based on the arguments filename or data.

Examples

Creating a hybrid-g parameter object

Details

Creating an object of hybrid-g parameters.

using EngeeRF
HG = gparameters([1 + im 2; 3 4;;;], [1])
gparameters(NumPorts = 2, Parameters = ComplexF64[1.0 + 1.0im 2.0 + 0.0im; 3.0 + 0.0im 4.0 + 0.0im;;;], Frequencies = [1])