How to call structure value in simulink?

> Test_Structure
Test_Structure =
a: [10 20 30]
b: [50 60 70]
>> how to call above structure into simulink?

 Respuesta aceptada

TAB
TAB el 25 de Feb. de 2013

0 votos

Simply put Test_Structure.a or Test_Structure.b in constant block to use their values.

3 comentarios

Arun Badigannavar
Arun Badigannavar el 25 de Feb. de 2013
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,,,
TAB
TAB el 25 de Feb. de 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 el 25 de Feb. de 2013
Thank u

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 25 de Feb. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by