フィルターのクリア

how to use PreLoadFcn

7 ビュー (過去 30 日間)
Sahar
Sahar 2014 年 10 月 15 日
コメント済み: Sahar 2014 年 10 月 16 日
I have a model which was designed in MATLAB2014a and I have used the preload function to set my parameters. it used to work perfect, until I installed MATLAB2014b and now everytime I open my model, I get an error which says "Undefined variable "myparam" or class "myparam.m" " , myparam.m is an mfile including my parameters. how can I stop getting this error and make it work?

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 10 月 15 日
You'll need to add the directory containing my_param.m to the MATLAB path so MATLAB and SIMULINK can see it:
  3 件のコメント
Sean de Wolski
Sean de Wolski 2014 年 10 月 15 日
That does not necessarily mean that folder is on the path. You could be able to run things in that folder if it was the current one, but not when navigating away from it.
Sahar
Sahar 2014 年 10 月 16 日
but there is no option to add it to the path, the only thing I see when right-clicking, is "indicate files Not on path" .

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by