When you use fitctree, you can adjust the Name-Value Pair Arguments (Statistics and Machine Learning Toolbox) depending on your use case. For example, you can set a small minimum leaf size, which yields a better accuracy ratio (see Model Validation) but can result in an overfitted model.The decision tree has a predict function that, when used with a second and third output argument, gives valuable information.