How to Import a .mat file in simulink ???

we can import a .mat file in matlab code just by using load data.mat , but how to import the mat file in simulink?

Answers (2)

You can use the From File block. Please pay attention to the section in the documentation page about the format that the data must be stored in. One important requirement is the need to represent the time dimension in your data.
Sean de Wolski
Sean de Wolski on 24 Feb 2012
You could also run a script that loads the file in one of the model callbacks.

Categories

Find more on Modeling in Help Center and File Exchange

Asked:

on 24 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!