Global variables in embedded Matlab function
古いコメントを表示
Hi @ all,
I would like to use some variables defined in a m-file into embedded Matlab block in Simulink. I would like to do this without define again the variables names and values.
Someone knows if it possible to use some global variables defined in the Matlab workspace in the embedded Matlab block in Simulink?
There is an alternative method to do what I want?
Thanks in advance
Mitch
回答 (1 件)
Azzi Abdelmalek
2013 年 3 月 20 日
0 投票
3 件のコメント
Guy Rouleau
2013 年 3 月 21 日
Please do not pass a Constant to a MATLAB Function block using a signal... you should pass the value as a parameters:
Mitch Martelli
2013 年 3 月 21 日
Azzi Abdelmalek
2013 年 3 月 21 日
I've always used constant block as input argument for Matlab function block and it worked fine. But I 've also thought that there is a better way to do it, Guy 's answer is really what I was looking for. Thanks Guy
カテゴリ
ヘルプ センター および File Exchange で Simulink Functions についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!