In this MATLAB code, we implemented the Social Emotional Optimization Algorithm (SEOA) for k-means clustering.
The output of the code :
2.0646 1.0710 2.9516
As you see the center of each class is calculated correctly.
We did not use any MATLAB toolbox for the implementation of this code, we just use MATLAB basic programming.