Scaling of 2D objects
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
obj2, …>, <
a = amin .. amax>,
objects) applies the scaling transformation with
the diagonal matrix A = diag(sx, sy) to
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.
to extract the graphical objects inside a scale object.
|influence of objects on the |
|the number of frames in an animation|
|the name of a plot object (for browser and legend)|
|end value of the animation parameter|
|name of the animation parameter|
|initial value of the animation parameter|
|range of the animation parameter|
|scaling factor in x-direction|
|scaling factor in y-direction|
|end time of the animation|
|start time of the animation|
|the real time span of an animation|
A scaling transformation turns a circle into an ellipse:
plot(plot::Scale2d([1 + 3*a, 1 + a], plot::Circle2d(1), a = 0..1))
The scaling factors: numerical real values or arithmetical expressions of
the animation parameter
Arbitrary plot objects of the appropriate dimension
Animation parameter, specified as