I have a user defined function in simulink.
I need to use a global variable from simulink work space. How can access the simulink local worksspace, for the usage of simulink user defined function

2 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 22 日
This is not clear
Rashmil Dahanayake
Rashmil Dahanayake 2013 年 12 月 23 日
Hi, Please find attached the simulink file. I have commented inside the file.

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

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 12 月 30 日

0 投票

I'm assuming that by "User Defined Function", you actually mean the MATLAB Function block? If so, you can read a workspace variable, by passing it in as a block parameter.

1 件のコメント

Rashmil Dahanayake
Rashmil Dahanayake 2013 年 12 月 31 日
It worked after changing the data type from input to parameter Thanks

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Simulink Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by