title: Matlab Simulink enumeration mapping
body: <p>I want to map 2 enumeration lists in simulink in a way that it is easy to see the connection between the 2 maps using their names instead of their values. How can this be done?</p>
  
  <p>Thank you!</p>
  
  <p><strong>Example:<br /></strong>
  Actions: </p>
  
  <pre><code>classdef(Enumeration) Actions &lt; Simulink.IntEnumType
      enumeration
          Off(1)
          PowerOn(2)
          PowerOff(3)
      end
  end 
  </code></pre>
  
  <p>States:</p>
  
  <pre><code>classdef(Enumeration) States &lt; Simulink.IntEnumType
      enumeration
          START(1000)
          RUNNING(1002)
          STOPPED(1003)
          OFF(1004)
      end
  end 
  </code></pre>
  
  <p>The connections would be like this:</p>
  
  <pre><code>States.START -&gt; Actions.PowerOn
  States.RUNNING -&gt; Actions.PowerOn
  States.STOPPED -&gt; Actions.PowerOff
  States.OFF -&gt; Actions.Off
  </code></pre>