www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ViewTrainedClassificationTreeExample.m
%% View Trained Classification Tree % View textual and graphical displays of a trained classification tree. %% % Load Fisher's iris data set. load fisheriris %% % Train a classification tree using all measurements. Mdl = fitctree(meas,species); %% % View textual display of the trained classification tree. view(Mdl) %% % View graphical display of the trained classification tree. view(Mdl,'Mode','graph');