| Contents | Index |
applies the scaling transformation
with the diagonal matrix
to 2D objects.
acts accordingly on 3D objects.
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. |
|
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:
Scale objects can scale several graphical objects simultaneously. Plotting the scale object renders all graphical objects inside.
Transformation objects can be used inside scale objects. If they are animated, the animations run simultaneously.
Animated scale objects are rather “cheap” concerning computing and storing costs. For more complex graphical objects, it is more efficient to use an animated scale object than to redefine the object for each frame.
The function op allows to extract the graphical objects inside a scale object.
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))


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]):

delete A0, A1, A2:

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 |