The latent heat L is defined as,
\(L=\frac Qm\), where Q is the amount of heat and m is the mass.
Dimensional formula of Q = [ML2T-2]
Dimensional formula of m = [M]
Hence the dimensional formula of latent heat of a given mass is