The lsq command finds the least squares solution to a matrix equation AX=b. LSQ is a synonym for lsq.
Examples.