How to call structure value in simulink?

2 vues (au cours des 30 derniers jours)
Arun Badigannavar
Arun Badigannavar le 25 Fév 2013
> Test_Structure
Test_Structure =
a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?

Réponse acceptée

TAB
TAB le 25 Fév 2013
Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.
  3 commentaires
TAB
TAB le 25 Fév 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.
Arun Badigannavar
Arun Badigannavar le 25 Fév 2013
Thank u

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by