Building Decision Trees in MATLAB for Classification and Regression
Classification Tree with the Iris Dataset
Load and prepare the Fisher iris data, then split into training and test partitions after standardizing the feature matrix.
load fisheriris;
features = meas; % 4 predictors
speciesLabel = species; % response
% Standardize
[featStd, muVals, sigVals] = zscore(features);
% Hold-out partitio ...
Posted on Mon, 02 Nov 2026 16:10:03 +0000 by whitehat