Main Content

rotateZ

Rotate RF PCB shape about z-axis

Since R2021b

Description

c = rotateZ(shape,angle) rotates a shape by the specified angle about the z-axis.

example

Examples

collapse all

Create and display a spiral trace.

trace = traceSpiral;
show(trace)

Figure contains an axes object. The axes object with xlabel x (mm), ylabel y (mm) contains 2 objects of type patch. These objects represent PEC, myspiral.

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

traceRotZ = rotateZ(trace,45);

Display the rotated shape.

show(traceRotZ)

Figure contains an axes object. The axes object with xlabel x (mm), ylabel y (mm) contains 2 objects of type patch. These objects represent PEC, myspiral.

Input Arguments

collapse all

RF PCB shape created using custom elements and shape objects of RF PCB Toolbox™, specified as an object.

Example: shape = bendCurved; specifies the shape as a bendCurved object.

Angle of rotation, specified as a scalar in degrees.

Example: 45 rotates the shape around the z-axis by 45 degrees.

Data Types: double

Version History

Introduced in R2021b