Explanation

treeprune has been removed.


Suggested Action

Replace instances of treeprune with the prune method of a ClassificationTree object (created using fitctree) or RegressionTree object (created using fitrtree).

For more information, see the prune method reference page of the ClassificationTree or RegressionTree class in the Statistics and Machine Learning Toolbox documentation.