Explanation

treetest has been removed.


Suggested Action

Create a tree object, T, using fitctree for a ClassificationTree object or fitrtree for a RegressionTree object, and replace treetest with the appropriate method.

For more information, see the resubLoss, loss, or cvloss method reference pages of the ClassificationTree or RegressionTree class in the Statistics and Machine Learning Toolbox documentation.