rotate
Description
Examples
Rotate Spiral Trace About Axis
Create and display a spiral trace.
trace = traceSpiral; show(trace)
Specify two points that define the axes of rotation.
pt1 = [0 0 0]; pt2 = [1 1 0];
Rotate the spiral trace by 45 degrees about the axis.
traceRot = rotate(trace,45,pt1,pt2);
Display the rotated shape. Set the camera line of sight to display in 3-D space.
show(traceRot) view(60,10)
Input Arguments
shape
— RF PCB shape
object
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
— Angle of rotation
scalar
Angle of rotation, specified as a scalar in degrees.
Example: 45
rotates the shape around the axis by 45
degrees.
Data Types: double
axis1
— One point on axis of rotation
three-element vector
One point on the axis of rotation, specified as a three-element vector of Cartesian coordinates in meters.
Example: [0 0 0]
Data Types: double
axis2
— Second point on axis of rotation
three-element vector
Second point on the axis of rotation, specified as a three-element vectors
of Cartesian coordinates in meters. axis2
must be
different than axis1
.
Example: [0 0 1]
Data Types: double
Version History
Introduced in R2021b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)