summaryrefslogtreecommitdiff
path: root/openEMS/matlab/WriteOpenEMS.m
blob: d7c9cbd574fe08be0770f86eeb97406c3081ebad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function WriteOpenEMS(filename, FDTD, CSX)
% function WriteOpenEMS(filename, FDTD, CSX)
%
% Write the FDTD and CSX structures to a file.
%
% example:
% CSX = InitCSX();
% FDTD = InitFDTD();
% WriteOpenEMS('test.xml',FDTD,CSX)
%
% See also InitFDTD InitCSX CSXGeomPlot
%
% openEMS matlab interface
% -----------------------
% author: Thorsten Liebig

openEMS.FDTD = FDTD;
openEMS.ContinuousStructure = CSX;
struct_2_xml(filename,openEMS,'openEMS');