Visualising the results of a classification tree elsewhere

I have a trained classification tree that I need to add as another column in a dataset, along with the initial independant variables.
So if an observation is predicted to have a value of 'A' with a probability >= 50%, then I need to have the value to be 'A' else 'B'
How to add the predicted values of this classification tree to a table?

This question is closed.

Products

Release

R2019a

Asked:

on 31 Aug 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!