Engee documentation

yparameters

Creates an object of Y-parameters.

Library

EngeeRF

Syntax

Function call

  • hy = yparameters(filename) — creates an object of Y-parameters hy by importing data from the Touchstone file specified in filename.

  • hy = yparameters(hnet) — creates a Y-parameter object from a network parameter object hnet.

  • hy = yparameters(data, freq) — creates a Y-parameter object based on the Y-parameter data data and frequencies freq.

  • hy = yparameters(rftbxobj) — extracts network data from rftbxobj and converts them into a Y-parameter object.

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

Data about network parameters specified as a scalar descriptor. If hnet — an object of Y-parameters, then hy — full copy hnet. Otherwise, the function performs a transformation of network parameters to create hy. 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 — Y-parameter data
an array of complex numbers

Details

Y-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 hy.

# freq — frequencies of Y-parameters

+ positive real vector

Details

The frequencies of the Y-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 hy.

# rftbxobj — network object

+ scalar

Details

A network object defined 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

# hy — Y-parameter data

+ scalar descriptor

Details

Y-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 Y-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 — Y-parameter data 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 Y-parameter object

Details

Creating a Y-parameter object.

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