modify mat_code
Merge branch 'second_period' of github.com:lifang/lantan_BAM into second_period