MATLAB ヘルプ センター
Rotate shape about z-axis by angle
rotateZ(shape,angle)
c = rotateZ(shape,angle)
rotateZ(shape,angle) rotates the shape about z-axis by an angle and plots the resultant shape.
shape
angle
example
c = rotateZ(shape,angle) rotates the shape about z-axis by an angle and returns a shape object.
c
collapse all
Create and view a rectangle with a length of 2 m and a width of 4 m.
r2 = antenna.Rectangle(Length=2,Width=4); show(r2) axis equal
Rotate the rectangle.
rotateZ(r2,45);
show(r2)
Shape to rotate, specified as one of the following objects:
2-D shapes without material properties:
antenna.Circle
antenna.Ellipse
antenna.Polygon
antenna.Rectangle
antenna.Triangle
2-D and 3-D shapes with material properties:
shape.Circle
shape.Ellipse
shape.Rectangle
shape.Polygon
shape.Box
shape.OpenBox
shape.Cylinder
shape.OpenCylinder
shape.Sphere
shape.Custom3D
Example: antenna.Rectangle
Example: shape.Polygon
Example: shape.Box
Angle of rotation, specified as a scalar in degrees.
Example: 45
45
Data Types: double
double
Resultant shape obtained after the rotation operation on the input shape, returned as a shape object.
Introduced in R2017a
add | subtract | area | intersect | rotate | rotateX | rotateY | translate | show | mesh | plot | scale
add
subtract
area
intersect
rotate
rotateX
rotateY
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ