I have a generated code from a Simulink model. This code dose not have any error when i compile it in Visual Studio. Also, This model saves the scope data into a .mat file. I used "TO File" block to save scope data. Now, how can i view the contents of that .mat file in Visual Studio? I use Visual Studio 2012. Thanks for any idea.