Engee documentation

abcdparameters

Creates an object of ABCD parameters.

Library

EngeeRF

Syntax

Function call

  • habcd = abcdparameters(filename) — creates an object of ABCD parameters habcd by importing data from the Touchstone file specified in filename.

  • habcd = abcdparameters(hnet) — creates an ABCD parameter object from a network parameter object hnet.

  • habcd = abcdparameters(data, freq) — creates an ABCD parameter object based on the ABCD parameter data data and frequencies freq.

  • habcd = abcdparameters(rftbxobj) — extracts network data from rftbxobj and converts them into an object of ABCD parameters.

Arguments

Input arguments

# data — data of ABCD parameters

+ an array of complex numbers

Details

Data of ABCD parameters, 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 the object habcd.

# filename — Touchstone file

+ line

Details

The Touchstone data file, specified as a string containing data about network parameters.

# freq — frequencies of ABCD parameters

+ positive real vector

Details

The frequencies of the ABCD 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 the object habcd.

# hnet — object of network parameters

+ the object of network parameters

Details

Network parameter data, set as a scalar descriptor. If hnet is an object of ABCD parameters, then habcd — full copy hnet. Otherwise, the function performs a transformation of network parameters to create habcd. 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.

# 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

# habcd — data of ABCD parameters

+ scalar descriptor

Details

The data of the ABCD parameters 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 ABCD 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 ABCD 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 an ABCD parameter object

Details

Create an object of ABCD parameters.

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