Corrected matriceDeGain

Corrected matriceDeGain