matrix calculate repeat 100times