openEMS/matlab/WriteOpenEMS.m

19 lines
447 B
Mathematica
Raw Normal View History

2010-03-23 06:15:04 +08:00
function WriteOpenEMS(filename, FDTD, CSX)
% function WriteOpenEMS(filename, FDTD, CSX)
2012-08-02 19:33:55 +08:00
%
% 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
2010-03-23 06:15:04 +08:00
2010-03-24 06:48:32 +08:00
openEMS.FDTD = FDTD;
openEMS.ContinuousStructure = CSX;
struct_2_xml(filename,openEMS,'openEMS');