openEMS/matlab/SetGaussExcite.m

17 lines
436 B
Mathematica
Raw Normal View History

function FDTD = SetGaussExcite(FDTD,f0,fc)
2011-04-20 20:22:22 +08:00
% function FDTD = SetGaussExcite(FDTD,f0,fc);
%
% f0 : center frequency
2011-09-08 21:43:41 +08:00
% 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
2010-03-23 06:15:04 +08:00
FDTD.Excitation.ATTRIBUTE.Type=0;
FDTD.Excitation.ATTRIBUTE.f0=f0;
FDTD.Excitation.ATTRIBUTE.fc=fc;