%% Clustering % Derive distance measure within feature space % Use measure to identify groups within data % Use these groups to inform further analyses eucD = pdist(all_coherence(:,3:end), 'euclidean'); % Derive distance metric clustTree = linkage(eucD, 'ward'); [h,nodes] = dendrogram(clustTree,0);