Help CenterHelp Center
Rotate RF PCB shape about defined axis
Since R2021b
c = rotate(shape,angle,axis1,axis2)
example
c = rotate(shape,angle,axis1,axis2) rotates a shape by a specified angle about an axes defined by two points axis1 and axis2.
shape
angle
axis1
axis2
collapse all
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)
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.
shape = bendCurved;
bendCurved
Angle of rotation, specified as a scalar in degrees.
Example: 45 rotates the shape around the axis by 45 degrees.
45
Data Types: double
double
One point on the axis of rotation, specified as a three-element vector of Cartesian coordinates in meters.
Example: [0 0 0]
[0 0 0]
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]
[0 0 1]
Introduced in R2021b
add | subtract | area | intersect | rotateX | rotateY | rotateZ | translate | show | mesh | plot | scale
add
subtract
area
intersect
rotateX
rotateY
rotateZ
translate
show
mesh
plot
scale
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office