diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2016-07-05 18:02:38 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2016-07-05 18:02:38 +0200 |
commit | ef962f6008f25ab7cbd4ca21bcc72b97a1e2d76f (patch) | |
tree | 8149bee93d1a3f91d4503bfb3853adac4af0a85e /openEMS/matlab/SetGaussExcite.m |
Imported Upstream version 0.0.34
Diffstat (limited to 'openEMS/matlab/SetGaussExcite.m')
-rw-r--r-- | openEMS/matlab/SetGaussExcite.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openEMS/matlab/SetGaussExcite.m b/openEMS/matlab/SetGaussExcite.m new file mode 100644 index 0000000..be650ba --- /dev/null +++ b/openEMS/matlab/SetGaussExcite.m @@ -0,0 +1,18 @@ +function FDTD = SetGaussExcite(FDTD,f0,fc) +% function FDTD = SetGaussExcite(FDTD,f0,fc); +% +% f0 : center frequency +% fc : 20dB cutoff frequency --> bandwidth is 2*fc +% +% see also SetSinusExcite SetCustomExcite +% +% e.g FDTD = SetGaussExcite(FDTD,1e9,1e8); +% +% openEMS matlab interface +% ----------------------- +% author: Thorsten Liebig + +FDTD.Excitation.ATTRIBUTE.Type=0; +FDTD.Excitation.ATTRIBUTE.f0=f0; +FDTD.Excitation.ATTRIBUTE.fc=fc; +FDTD.ATTRIBUTE.f_max=f0+fc; |