How to call structure value in simulink?

1 view (last 30 days)
> Test_Structure
Test_Structure =
a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?

Accepted Answer

TAB
TAB on 25 Feb 2013
Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.
  3 Comments
TAB
TAB on 25 Feb 2013
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!