Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Variablle abstraction possible in Simulink and/or Matlab?

1 vue (au cours des 30 derniers jours)
John Hudak
John Hudak le 30 Juin 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
Is there a way in Simulink (perferably - or in Matlab) to create an abstract data type? For example, in a Simulink state chart I want to have the arrival of a position change event trigger a transition to another state. I want the 'position' variable to be comprised of coordinates in 3-space. Can I define a 'position' variable to be composed of the following:
  • position.x - 16 bit integer
  • position.y - 32 bit integer
  • position.z - 32 bit floating pt.
At some level in the state chart hierarchy, simply refer to 'position'?
Thanks
-John

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