www.gusucode.com > stats 源码程序 matlab案例代码 > stats/TrainClassificationTreeExample.m

    %% Train Classification Tree
% This example shows how to train a classification tree.
%%
% Create a classification tree using the entire |ionosphere| data set.
load ionosphere % Contains X and Y variables
Mdl = fitctree(X,Y)