How do you load a mat file when ou open a model?

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?

 채택된 답변

A Jenkins
A Jenkins 2014년 9월 22일

1 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품

질문:

2014년 9월 22일

댓글:

2014년 10월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by