%% Create Rectangular Dielectric Resonator with Multiple Dielectric Substrates
% Create a rectangular dielectric resonator antenna with FR4, Teflon, and foam as substrates.

 ant = draRectangular;
 d = dielectric('FR4','Teflon','Foam');
 d.Thickness = [ant.Substrate.Thickness/3 ant.Substrate.Thickness/3 ant.Substrate.Thickness/3];
 ant.Substrate = d;  
 ant = draRectangular('Substrate',d);
 show(ant)

% Create a rectangular dielectric resonator antenna with substrates having relative permittivity of 2.3 and 4.5, respectively. The value of loss tangent for both the substrates is 0.002.

ant = draRectangular;
d = dielectric;                                                                                                                                                                                                                               
d.Name = {'sub1','sub2'};
d.EpsilonR = [2.3 4.5];
d.LossTangent = [0.002 0.002];
d.Thickness = [ant.Substrate.Thickness/2 ant.Substrate.Thickness/2];
ant.Substrate = d;
show(ant)

%
%
% Copyright 2020 The MathWorks, Inc.