MATLAB: How can i load mat file in simulink

simulink

I try to load mat file (matrix data) in simulink by using from file block but it only retrieve one column.

Best Answer

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.