For example, consider the matrix $B$: \begin{bmatrix} 5 & -2\\ -2 & 2 \end{bmatrix} computation of the 2-norm of $B$ using its eigenvalues (which is $6$ and $1$) yields $\sqrt{6}$ (since 6 is the largest eigenvalue of $B$).
But Matlab norm(B,2) yields 6.0000
This is obviously the answer without the square root. What am I missing here? Is Matlab not square rooting the answer?