PO_matlab
loadcstfarfield.m File Reference

Loads and processes far-field data exported from CST Studio Suite. More...

Functions

function loadcstfarfield (in filename)

Detailed Description

Loads and processes far-field data exported from CST Studio Suite.

This function parses a CST far-field text file and reconstructs the complex Etheta and Ephi components from magnitude and phase columns. It reshapes the data into 2D grids if the angular sampling is uniform, and computes the total normalized electric field magnitude in dB.

Parameters
filenamePath to the far-field export file
Return values
EdBNormalized total electric field magnitude in dB
EthetaComplex theta-polarized field component
EphiComplex phi-polarized field component
THETAElevation angle grid [rad] or vector if not structured
PHIAzimuth angle grid [rad] or vector if not structured

Function Documentation

◆ loadcstfarfield()

function loadcstfarfield ( in filename)