I'm pretty new to Latex. I'm using a template from my institution so I don't have to be an expert... I want to implement this dimensional matrix:
\begin{table}[!htb]
\centering
\begin{tabular}{c||c|c|c|c|c|}
& W & $U_\infty$ & $\eta$ & $\rho$ & d \\
\midrule
\midrule
M & 1 & 0 & 1 & 1 & 0 \\
L & 1 & 1 & -1 & -3 & 1 \\
T & -2 & -1 & -1 & 0 & 0 \\
\bottomrule
\end{tabular}
\label{...}
\end{table}
I want it to be displayed as a formula (\begin{equation} ...) in order to be able to reference it as an equation. It should have the same look though. I can't just use a normal matrix as I don't know how to put the variables and the dimensions in if I want the separating lines. How do I do that?