MATLAB: How do you load a mat file when ou open a model

.mat filedata dictionarysimulink

I am using 2011b. I have created a data dictionary and saved it as a *.mat file. How do you get it to load automatically when you open the model?

Best Answer

In Simulink:
File->Model Properties->Callbacks->PreLoadFcn
put your m code there, such as:
load('myfile.mat')
Related Question