%%  Mesh Rectangular Trace
% Create a 2 cm-by-2 cm rectangular trace.

trace = traceRectangular(Length=0.02,Width=0.02);

% Rotate the trace by 45 degrees about the z-axis.

trace = rotateZ(trace,45);

% Mesh the trace at a maximum edge length of 5 mm.

mesh(trace,MaxEdgeLength=5e-3)

% Copyright 2020 The MathWorks, Inc.