Skip to Main Content Skip to Search
Product Documentation

plot::Scale2dscaling of 2D objects

plot::Scale3dscaling of 3D objects

plot::Scale2d([s_x, s_y], objects) applies the scaling transformation x -> A*x with the diagonal matrix A = diag(s_x, s_y) to 2D objects.

plot::Scale3d([s_x, s_y, s_z], objects) acts accordingly on 3D objects.

→ Examples

Calls:

plot::Scale2d([sx, sy], obj1, <obj2, ...>, <a = amin .. amax>, Options)

plot::Scale3d([sx, sy, sz], obj1, <obj2, ...>, <a = amin .. amax>, Options)

Parameters:

sx, sy, sz

the scaling factors: numerical real values or arithmetical expressions of the animation parameter a
sx, sy, sz are equivalent to the attributes Scale, ScaleX, ScaleY, ScaleZ.

obj1, obj2, ...: 

arbitrary plot objects of the appropriate dimension

See Also:

plot, plot::copy, plot::Rotate2d, plot::Rotate3d, plot::Transform2d, plot::Transform3d, plot::Translate2d, plot::Translate3d

Details:

Example 1

A scaling transformation turns a sphere into an ellipsoid:

plot(plot::Scale3d([1 + 3*a, 1 + 2*a, 1 + a],
                   plot::Sphere(1, [0, 0, 0]),
                   a = 0..1))

MuPAD graphicsimage

We plot a (southern) hemisphere and two scaled copies:

A0 := plot::Spherical([1, u, v], u = 0..2*PI, v = PI/2 .. PI):
A1 := plot::Scale3d([0.5, 0.4, 0.5], A0):
A2 := plot::Scale3d([0.2, 0.3, 0.2], A0):
plot(A0, A1, A2, CameraDirection = [-1, -2, 2.5]):

MuPAD graphics

delete A0, A1, A2:

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS