Cluster validation with predict function in MATLAB Conducting data analysis in MATLAB using the kmeans algorithm like so: