modify tanh func
modify the bug "cannot read raw txt files"
It can read mat file now!