How can I use data size of the message in stateflow?

2 visualizaciones (últimos 30 días)
Vikas Raskar
Vikas Raskar el 22 de Dic. de 2017
Respondida: Muthukumar Ganesan el 1 de Ag. de 2022
I have defined message queue of size 1. In message property data size is set as 10. When try to access message data as M.data(0) matlab gives an error. How to access data element as array in stateflow message.

Respuestas (1)

Muthukumar Ganesan
Muthukumar Ganesan el 1 de Ag. de 2022
Hi,
For a Stateflow with C action language, to index arrays square brackets should be used. Ex: M.data[0]
Thanks

Categorías

Más información sobre Stateflow en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by