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?

Respuestas (2)

Kaustubha Govind
Kaustubha Govind el 24 de Feb. de 2012

0 votos

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 el 24 de Feb. de 2012

0 votos

You could also run a script that loads the file in one of the model callbacks.

Preguntada:

el 24 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by