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

조회 수: 2 (최근 30일)
Mark
Mark 2014년 9월 22일
댓글: Mark 2014년 10월 2일
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일
In Simulink:
File->Model Properties->Callbacks->PreLoadFcn
put your m code there, such as:
load('myfile.mat')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by