fix minnor bugs

fix MatRockSim.m