How to read this matrix notation Excuse me for this basic question, but when reading some mathematic books I have encountered the following matrix:
W = 2diag([1 1 0,01])

Could anybody explain to me how can I read this? Is it just a diagonal matrix multiplied by 2?

My guess would be $\texttt{2diag([1 1 0,01])}=\begin{bmatrix}2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 0,02  \end{bmatrix}.$
