title: How to change variables in time in Simulink?
body: <p>I have some processing (moving of wheelset). Wheelset has mass, it's variable and it's declaring in <code>init.m</code> file (for example <code>M=1;</code>)</p>
  
  <p>Now I want that in this proccess mass of wheelset will be changed every 2 seconds. How to save the new value of mass to M variable from Simulink?</p>