summaryrefslogtreecommitdiff
path: root/openEMS/matlab/WriteOpenEMS.m
diff options
context:
space:
mode:
Diffstat (limited to 'openEMS/matlab/WriteOpenEMS.m')
-rw-r--r--openEMS/matlab/WriteOpenEMS.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/openEMS/matlab/WriteOpenEMS.m b/openEMS/matlab/WriteOpenEMS.m
new file mode 100644
index 0000000..d7c9cbd
--- /dev/null
+++ b/openEMS/matlab/WriteOpenEMS.m
@@ -0,0 +1,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'); \ No newline at end of file