MATLAB: How to import a MAT file to Simulation Data Inspector

simulink

I have a MAT file and cannot import it into the Simulink Data Inspector (SDI), the button is greyed out. How do I import MAT files?

Best Answer

Not all types of MAT files are accepted by SDI. If you have a table with simulation data, you can save the table as a CSV with the following command:
>> writetable(myTable,'myData.csv','Delimiter',',')
Then you will be able to pick myData.csv in the Import browser of Simulation Data Inspector.