PO_matlab
loadcstfarfield_mycoords.m File Reference

Loads CST far-field data and reorganizes it into a symmetric coordinate format. More...

Functions

function loadcstfarfield_mycoords (in filename)

Detailed Description

Loads CST far-field data and reorganizes it into a symmetric coordinate format.

This function parses a CST far-field export file and applies post-processing to reorient and clean the data for symmetric coordinate usage. It merges overlapping phi sections, flips hemispheres when needed, removes duplicates, and trims to -90 <= theta <= 90 degrees.

Parameters
filenamePath to the far-field text file exported from CST Studio
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
PHIAzimuth angle grid [rad] or vector

Function Documentation

◆ loadcstfarfield_mycoords()

function loadcstfarfield_mycoords ( in filename)