I guess your format of matrix in .mat file is wrong. In the matrix, the time stamps should be in first row and the data with respect to each time stamp should start from second row.
Refer the following link for more information: https://www.mathworks.com/help/simulink/ug/load-data-using-the-from-file-block.html#bu2vguv