Attento a come stampi il valore :

echo "".$matrice[1]['cod'] ;