MATLAB 帮助中心
Rotate RF PCB shape about defined axis
Since R2021b
c = rotate(shape,angle,axis1,axis2)
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
example
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
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处