As a final example to illustrate how MATLAB treats inconsistent square systems, find a least-squares solution to Ax = b where
A=\left[\begin{array}{lll}2 & 3 & 5 \\1 & 0 & 3 \\3 & 3 & 8\end{array}\right], \quad b =\left[\begin{array}{l}1 \\1 \\1\end{array}\right].