How to Import a .mat file in simulink ???
Show older comments
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)
Kaustubha Govind
on 24 Feb 2012
0 votes
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
on 24 Feb 2012
0 votes
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!