How to call structure value in simulink?

1 次查看(过去 30 天)
> Test_Structure
Test_Structure =
a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?

采纳的回答

TAB
TAB 2013-2-25
Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.
  3 个评论
TAB
TAB 2013-2-25
If you want to access the elements of array, put Test_Structure.a in constant block and pass this to data port of Index vector block.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by