How MATLAB calculates matched filter gain
Matched filter gain is calculated as (in dB):


$G_{dB} = 10 \cdot \log_{10}(L)$,


where $L$ - is filter length. It's maximum possible SNR improvement that filter can provide.

Try this formula and compare result with MATLAB one. I suppose it will be the same.