This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ScalingMatrix

ScalingMatrix
gives the matrix corresponding to scaling by a factor along each coordinate axis.
ScalingMatrix
gives the matrix corresponding to scaling by a factor s along the direction of the vector v.
Scaling by factors , , and along the , , and directions:
Scaling by a factor along the direction of the vector :
Scaling by factors , , and along the , , and directions:
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=
 
Scaling by a factor along the direction of the vector :
In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=
Scaling factors can be negative or zero:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
Create an ellipsoid:
Display projection of a 3D graphic:
The determinant of ScalingMatrix is s:
The inverse of ScalingMatrix is given by ScalingMatrix:
The determinant of ScalingMatrix is given by :
The inverse of ScalingMatrix is given by ScalingMatrix:
Repeated scalings in different directions:
New in 6