use map data structure with simulink -android

i used this:
map=containers.Map(5.5,1);
and i get this error :
please any help of how to use maps with simulink .

回答 (2 件)

Karan Singh
Karan Singh 2025 年 2 月 5 日

0 投票

You can try including a "MATLAB Function" block and placing your code within it. This might help resolve the issue. Since you haven't provided more context, it's difficult for me to offer a more specific solution. However, this could be a possible workaround.
Karan
Walter Roberson
Walter Roberson 2025 年 2 月 5 日

0 投票

Containers.map data structures cannot be output from Simulink blocks.
The newer dictionary data type also cannot be output from Simulink blocks.

質問済み:

2020 年 6 月 13 日

回答済み:

2025 年 2 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by