MATLAB ヘルプ センター
Change size of shape by fixed factor
scale(shape,factor)
c = scale(shape,factor)
scale(shape,factor) scales the shape by a constant scaling factor and plots the resultant shape.
shape
factor
example
c = scale(shape,factor) scales the shape by a constant scaling factor and returns a shape object.
c
collapse all
Create a rectangular shape.
r = antenna.Rectangle; show(r) axis equal
Shrink the rectangle by 50%.
scale(r,0.5);
Shape to scale, 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
Constant factor to change shape size, specified as a scalar.
Example: 2
2
Data Types: double
double
Resultant shape obtained after the scaling operation on the input shape, returned as a shape object.
Introduced in R2017a
add | subtract | area | intersect | rotate | rotateX | rotateY | rotateZ | show | mesh | plot
add
subtract
area
intersect
rotate
rotateX
rotateY
rotateZ
show
mesh
plot
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 のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ