Scale
, ScaleX
, ScaleY
, ScaleZ
Scaling factors
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.
Objects | Default Values |
---|---|
plot::Scale2d |
|
plot::Scale3d |
|
Scale
defines the scaling factors used by plot::Scale2d
and plot::Scale3d
.
ScaleX
etc. correspond to the factors in
the single coordinate directions.
The scaling objects plot::Scale2d
and plot::Scale3d
apply the scaling transformation
with the matrix A =
diag(sx,
sy) in 2D and A =
diag(sx,
sy,
sz) in 3D, respectively.
Scale
is the list [sx,
sy]
resp. [sx,
sy, sz]
of
the scaling factors. The attributes ScaleX
etc.
correspond to sx
etc.
These attributes can be animated.
We start with a 2D circle:
c := plot::Circle2d(3, [3, 3]):
We apply a scaling transformation:
S := plot::Scale2d([2, 3], c): plot(c, S):
The scaling factors are stored as the Scale
attribute
in the scaling object S
:
S::Scale, S::ScaleX, S::ScaleY
We change the scaling factors:
S::Scale := [-2, -3]: plot(c, S):
delete c, S: