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

ScalingMatrix

ScalingMatrix[{sx, sy, ...}]
gives the matrix corresponding to scaling by a factor si along each coordinate axis.
ScalingMatrix[s, v]
gives the matrix corresponding to scaling by a factor s along the direction of the vector v.
New in 6