clear clear all % For reproducibility rng(1); load('dip_hw_2.mat'); clusters = mySpectralClustering(d1a, 2); clusters = clusters ./ 2; %clusters = reshape(clusters, 4, []); figure(); imshow(clusters); clusters = mySpectralClustering(d1a, 3); clusters = clusters ./ 3; %clusters = reshape(clusters, 4, []); figure(); imshow(clusters); clusters = mySpectralClustering(d1a, 4); clusters = clusters ./ 4; %clusters = reshape(clusters, 4, []); figure(); imshow(clusters);