Get 0D results from CST to MATLAB
Show older comments
Hi all, I'm struggling on this export from CST to MATLAB using the direct call.
I managed to export the 1D results, for example Transient, Eye, .... Now I have to export the Eye Height but I don't know how to execute the instruction. It is clear that GetArray won't work because it's a 0D result, but at the same time I didn't find any other call to take those values.
Can someone solve this or maybe imagine how to solve it ???

design.invoke("ReportInformationToWindow","Reading Results")
ResultPath="Tasks\Tran_bitpattern\EyeAnalysis1\Eye size\Eye height (1D)";
ResultTree = design.invoke('DSResulttree'); %
filename = ResultTree.invoke('GetFileFromTreeItem', ResultPath); %it is a real .sig file on disk
data = design.invoke('Result0D',filename);
% time=data.invoke("GetArray",'x'); % time data
% hight=data.invoke("GetArray",'y'); % voltage data
Answers (1)
Satyam
on 11 Mar 2026
Hi Michele,
In CST–MATLAB automation, 0D results such as Eye Height are scalar values, so they cannot be accessed using "GetArray", which is intended only for 1D or higher-dimensional datasets containing X–Y arrays. After retrieving the .sig file using "GetFileFromTreeItem", the value should be read from the Result0D object using the "GetValue" method instead.
Here is an example depicting the same:
design.invoke("ReportInformationToWindow","Reading Results");
ResultPath = "Tasks\Tran_bitpattern\EyeAnalysis1\Eye size\Eye height (1D)";
ResultTree = design.invoke('DSResulttree');
filename = ResultTree.invoke('GetFileFromTreeItem', ResultPath);
data = design.invoke('Result0D', filename);
eyeHeight = data.invoke('GetValue'); % scalar 0D value
More details on calling COM methods from MATLAB can be found in the MATLAB documentation on "invoke": https://www.mathworks.com/help/matlab/ref/com.invoke.html
I hope it helps.
1 Comment
Michele
on 11 Mar 2026
Categories
Find more on MATLAB 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!