summaryrefslogtreecommitdiff
path: root/openEMS/matlab/SetGaussExcite.m
blob: be650ba225738bf58d0da1831e277f3f15d406b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;