title: how to store and retrieve multiple decision trees in matlab
body: <p>I have a for loop that generates a single decision tree each time and later on in the program I need to apply all the decision trees to the testing data (the decision trees are NOT combined in an ensemble). I tried to store them in an array of structures but when I am applying them to the test data I have the following error:</p>
  
  <blockquote>
    <p>(Undefined function 'predict' for input arguments of type 'struct'.).</p>
  </blockquote>
  
  <p>I know that the tree generated is an object but how you can store and retrieve multiple objects in MATLAB?</p>