title: Create a simulink bus from a structure
body: <p>I have measurement data that is stored in form of hierarchical structures containing MATLAB timeseries objects.
  For example:</p>
  
  <pre><code>MyData
    - TimeSeries1
    - TimeSeries2
    - MyHierarchicalData
       -- TimeSeries3
  </code></pre>
  
  <p>To use those in Simulink I use a from file block that reads these structures from a single file. However, to select signals out of those, the bus selector block needs a corresponding bus object. As the bus object more or less corresponds to the structure, I would like to know whether it is possible to generate a bus object out of my structured timeseries data. If the bus only contained a few variables, doing this by hand would not be a problem but the bus contains roughly 250 elements.</p>
  
  <p>My first guess would be the Simulink API but I thought this problem occured more frequently and there exists an easier solution. If there is none and I am on the wrong trail I would appreciate some feedback as well.</p>
  
  <p>Thanks in advance!</p>