a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?
Direct link to this answer:
Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.
Direct link to this comment:
Thanks for the answer,,but rather i am looking for something else,,,like I want a *_Test_Sructure.a(1,1),_Test_Sructure.a(1,2)*values to be assigned to only one constant vlock in a for loop,,,
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.
Log In to answer or comment on this question.
Play games and win prizes!
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries