Export 3D radiation pattern in CST to Matlab

29 views (last 30 days)
Hello everyone, is there a kind soul who could explain to me how I can retrieve the 3D field of an antenna array to use it in my MATLAB calculations? For instance, I want to apply this formula:

Accepted Answer

William Rose
William Rose on 1 Jan 2024
Edited: William Rose on 2 Jan 2024
[edit: Fix spelling errors. Add readmatrix() to my answer. Add discussion of some pros and cons of different data-import functions.]
It seems to me that you may have two different questions. If I misunderstand, please explain.
Question 1. How do I get 3D data from the CST suite into Matlab?
CST has an option to export data in text format, also known as ASCII format. Use that option to create a .txt file. Then use the Matlab interactive import data tool, or use readtable(), or use readmatrix(), or strip off the header info in the .txt file, then use load() to import the data. See the help for import data tool, readtable, readmatrix, and load for details. readtable() creates a table, and if you are new to matlab, you may find it slightly more complicated to work with a table. An advantage of readtable(), compared ot load(), is that readtable() brings the column header information into the Matlab environment. load() is simple to use. readtable() can read data from different types of text files and .xls and .xlsx files. readtable() can skip a certain number of header lines. readtable() can read a specific rectangular cell range, if the input file is a .xls or .xlsx.
Question 2. Once I have imported the 3D data, how do I do numerical integration?
That depends quite a lot on the data format and the problem, so I suggest you post a data file, and specify variables and limits of integration, etc., in order to get useful assistance.
Good luck!
  1 Comment
Wilfrid RENKANGA MBATCHI
Wilfrid RENKANGA MBATCHI on 23 Jan 2024
Hello William Rose, thank you for your very relevant insights. I am more focused on Question 2. Indeed, I have a 20x20 element 2D antenna array in MATLAB, and I have also simulated a 20x20 element array in CST. In MATLAB, I approximated the radiation pattern of my excitation source (horn) and that of a single array cell using classical mathematical formulas for reflectarrays or transmitarrays. In a complete simulation, CST provided me with a radiation pattern of the entire array. I want to extract this pattern and use it in my MATLAB code to perform calculations (i.e., use the CST radiation pattern in my 2D MATLAB calculations).

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!