How to access Data dictionary data in matlab function block simulink

17 ビュー (過去 30 日間)
Carita Ranvik
Carita Ranvik 2018 年 11 月 1 日
回答済み: Fangjun Jiang 2018 年 11 月 1 日
I am having problems with using data from data dictionary in a matlab function block. If i have some constants store in the data dictionary that i want to use inside a matlab function block, how do i do that?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2018 年 11 月 1 日
Add a "data" to the MATLAB Function block and specify its scope as "Parameter" (rather than input or output). Have "data" defined in your Simulink data dictionary.

カテゴリ

Help Center および File ExchangeManage Design Data についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by