This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# ScalingMatrix

 ScalingMatrix gives the matrix corresponding to scaling by a factor along each coordinate axis. ScalingMatrixgives 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:
 Out[1]//MatrixForm=
 Out[2]=

Scaling by a factor along the direction of the vector :
 Out[1]//MatrixForm=
 Out[2]=
 Scope   (3)
Scaling factors can be negative or zero:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
 Applications   (2)
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