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 ExchangeManage 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