tic; % Start stopwatch timer
[idxO,CO,sumdO,DO] = kmeans(All_wheel_angle,pocet_shlukuO,'Options',options,'MaxIter',10000,...
    'Display','final','Replicates',100,'Distance',met_vzdal(ix_met));
toc
Replicate 3, 6 iterations, total sum of distances = 106353.
Replicate 6, 3 iterations, total sum of distances = 108879.
Replicate 5, 5 iterations, total sum of distances = 106353.
Replicate 4, 3 iterations, total sum of distances = 106281.
Replicate 2, 6 iterations, total sum of distances = 106281.
Replicate 1, 3 iterations, total sum of distances = 254331.
Replicate 30, 2 iterations, total sum of distances = 204390.
Replicate 29, 2 iterations, total sum of distances = 108879.
Replicate 28, 6 iterations, total sum of distances = 106281.
Replicate 27, 5 iterations, total sum of distances = 157854.
Replicate 26, 3 iterations, total sum of distances = 106353.
Replicate 25, 2 iterations, total sum of distances = 107924.
Replicate 24, 1 iterations, total sum of distances = 107819.
Replicate 23, 5 iterations, total sum of distances = 193230.
Replicate 22, 3 iterations, total sum of distances = 107948.
Replicate 21, 4 iterations, total sum of distances = 123924.
Replicate 20, 7 iterations, total sum of distances = 160363.
Replicate 19, 5 iterations, total sum of distances = 106281.
Replicate 18, 2 iterations, total sum of distances = 110645.
Replicate 17, 6 iterations, total sum of distances = 106281.
Replicate 16, 5 iterations, total sum of distances = 106353.
Replicate 15, 8 iterations, total sum of distances = 206889.
Replicate 14, 5 iterations, total sum of distances = 119047.
Replicate 13, 6 iterations, total sum of distances = 106281.
Replicate 12, 4 iterations, total sum of distances = 119047.
Replicate 11, 8 iterations, total sum of distances = 106281.
Replicate 10, 6 iterations, total sum of distances = 119047.
Replicate 9, 3 iterations, total sum of distances = 167126.
Replicate 8, 3 iterations, total sum of distances = 108879.
Replicate 7, 10 iterations, total sum of distances = 106353.
Replicate 78, 3 iterations, total sum of distances = 169166.
Replicate 77, 4 iterations, total sum of distances = 124596.
Replicate 76, 3 iterations, total sum of distances = 125333.
Replicate 75, 6 iterations, total sum of distances = 160363.
Replicate 74, 6 iterations, total sum of distances = 119047.
Replicate 73, 2 iterations, total sum of distances = 250734.
Replicate 72, 3 iterations, total sum of distances = 170996.
Replicate 71, 3 iterations, total sum of distances = 106281.
Replicate 70, 2 iterations, total sum of distances = 106353.
Replicate 69, 2 iterations, total sum of distances = 119799.
Replicate 68, 3 iterations, total sum of distances = 108249.
Replicate 67, 2 iterations, total sum of distances = 157854.
Replicate 84, 7 iterations, total sum of distances = 106353.
Replicate 83, 4 iterations, total sum of distances = 106353.
Replicate 82, 4 iterations, total sum of distances = 110645.
Replicate 81, 6 iterations, total sum of distances = 194064.
Replicate 80, 3 iterations, total sum of distances = 106281.
Replicate 79, 1 iterations, total sum of distances = 108249.
Replicate 93, 9 iterations, total sum of distances = 106281.
Replicate 92, 4 iterations, total sum of distances = 106353.
Replicate 91, 2 iterations, total sum of distances = 108879.
Replicate 96, 6 iterations, total sum of distances = 159118.
Replicate 95, 4 iterations, total sum of distances = 169391.
Replicate 94, 13 iterations, total sum of distances = 106281.
Replicate 54, 3 iterations, total sum of distances = 108879.
Replicate 53, 2 iterations, total sum of distances = 107819.
Replicate 52, 11 iterations, total sum of distances = 106281.
Replicate 51, 4 iterations, total sum of distances = 106353.
Replicate 50, 4 iterations, total sum of distances = 106281.
Replicate 49, 1 iterations, total sum of distances = 169148.
Replicate 48, 11 iterations, total sum of distances = 173556.
Replicate 47, 4 iterations, total sum of distances = 217278.
Replicate 46, 12 iterations, total sum of distances = 106353.
Replicate 45, 2 iterations, total sum of distances = 124596.
Replicate 44, 5 iterations, total sum of distances = 106353.
Replicate 43, 6 iterations, total sum of distances = 106353.
Replicate 42, 3 iterations, total sum of distances = 124596.
Replicate 41, 5 iterations, total sum of distances = 159697.
Replicate 40, 6 iterations, total sum of distances = 106281.
Replicate 39, 4 iterations, total sum of distances = 106281.
Replicate 38, 2 iterations, total sum of distances = 228571.
Replicate 37, 4 iterations, total sum of distances = 158250.
Replicate 36, 3 iterations, total sum of distances = 203106.
Replicate 35, 10 iterations, total sum of distances = 106281.
Replicate 34, 4 iterations, total sum of distances = 172845.
Replicate 33, 3 iterations, total sum of distances = 193935.
Replicate 32, 3 iterations, total sum of distances = 108879.
Replicate 31, 3 iterations, total sum of distances = 169062.
Replicate 66, 6 iterations, total sum of distances = 106281.
Replicate 65, 5 iterations, total sum of distances = 159186.
Replicate 64, 5 iterations, total sum of distances = 106353.
Replicate 63, 6 iterations, total sum of distances = 106353.
Replicate 62, 6 iterations, total sum of distances = 106281.
Replicate 61, 3 iterations, total sum of distances = 171634.
Replicate 60, 8 iterations, total sum of distances = 167126.
Replicate 59, 9 iterations, total sum of distances = 194064.
Replicate 58, 3 iterations, total sum of distances = 108879.
Replicate 57, 1 iterations, total sum of distances = 141363.
Replicate 56, 3 iterations, total sum of distances = 107948.
Replicate 55, 5 iterations, total sum of distances = 106353.
Replicate 90, 8 iterations, total sum of distances = 106353.
Replicate 89, 2 iterations, total sum of distances = 196111.
Replicate 88, 3 iterations, total sum of distances = 123924.
Replicate 87, 3 iterations, total sum of distances = 203765.
Replicate 86, 2 iterations, total sum of distances = 110645.
Replicate 85, 2 iterations, total sum of distances = 106353.
Replicate 98, 7 iterations, total sum of distances = 164681.
Replicate 97, 2 iterations, total sum of distances = 139926.
Replicate 100, 6 iterations, total sum of distances = 159118.
Replicate 99, 7 iterations, total sum of distances = 106281.
Best total sum of distances = 106281
Elapsed time is 1.280315 seconds.
>> 