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));
Starting parallel pool (parpool) using the 'local' profile ...
Connected to the parallel pool (number of workers: 2).
Replicate 3, 3 iterations, total sum of distances = 194326.
Replicate 6, 3 iterations, total sum of distances = 106353.
Replicate 5, 2 iterations, total sum of distances = 159966.
Replicate 4, 5 iterations, total sum of distances = 141272.
Replicate 2, 4 iterations, total sum of distances = 176368.
Replicate 1, 4 iterations, total sum of distances = 254056.
Replicate 30, 5 iterations, total sum of distances = 106281.
Replicate 29, 2 iterations, total sum of distances = 106353.
Replicate 28, 6 iterations, total sum of distances = 106281.
Replicate 27, 2 iterations, total sum of distances = 109069.
Replicate 26, 4 iterations, total sum of distances = 106353.
Replicate 25, 7 iterations, total sum of distances = 107948.
Replicate 24, 3 iterations, total sum of distances = 108879.
Replicate 23, 5 iterations, total sum of distances = 159118.
Replicate 22, 3 iterations, total sum of distances = 212735.
Replicate 21, 6 iterations, total sum of distances = 106281.
Replicate 20, 1 iterations, total sum of distances = 109069.
Replicate 19, 4 iterations, total sum of distances = 206889.
Replicate 18, 1 iterations, total sum of distances = 108879.
Replicate 17, 3 iterations, total sum of distances = 123924.
Replicate 16, 4 iterations, total sum of distances = 158537.
Replicate 15, 2 iterations, total sum of distances = 251432.
Replicate 14, 1 iterations, total sum of distances = 119799.
Replicate 13, 6 iterations, total sum of distances = 106281.
Replicate 12, 4 iterations, total sum of distances = 193377.
Replicate 11, 5 iterations, total sum of distances = 206054.
Replicate 10, 3 iterations, total sum of distances = 107924.
Replicate 9, 3 iterations, total sum of distances = 125333.
Replicate 8, 5 iterations, total sum of distances = 159697.
Replicate 7, 5 iterations, total sum of distances = 158225.
Replicate 78, 4 iterations, total sum of distances = 124596.
Replicate 77, 1 iterations, total sum of distances = 119047.
Replicate 76, 3 iterations, total sum of distances = 119047.
Replicate 75, 8 iterations, total sum of distances = 106353.
Replicate 74, 5 iterations, total sum of distances = 106281.
Replicate 73, 3 iterations, total sum of distances = 160348.
Replicate 72, 3 iterations, total sum of distances = 156662.
Replicate 71, 5 iterations, total sum of distances = 108879.
Replicate 70, 2 iterations, total sum of distances = 108879.
Replicate 69, 7 iterations, total sum of distances = 106281.
Replicate 68, 8 iterations, total sum of distances = 160363.
Replicate 67, 6 iterations, total sum of distances = 159621.
Replicate 54, 7 iterations, total sum of distances = 106353.
Replicate 53, 3 iterations, total sum of distances = 193509.
Replicate 52, 1 iterations, total sum of distances = 107819.
Replicate 51, 5 iterations, total sum of distances = 106353.
Replicate 50, 3 iterations, total sum of distances = 119047.
Replicate 49, 6 iterations, total sum of distances = 193994.
Replicate 48, 4 iterations, total sum of distances = 160166.
Replicate 47, 5 iterations, total sum of distances = 158250.
Replicate 46, 5 iterations, total sum of distances = 108879.
Replicate 45, 5 iterations, total sum of distances = 106353.
Replicate 44, 3 iterations, total sum of distances = 108879.
Replicate 43, 2 iterations, total sum of distances = 173504.
Replicate 42, 3 iterations, total sum of distances = 108879.
Replicate 41, 5 iterations, total sum of distances = 106281.
Replicate 40, 5 iterations, total sum of distances = 160348.
Replicate 39, 7 iterations, total sum of distances = 106281.
Replicate 38, 2 iterations, total sum of distances = 109069.
Replicate 37, 8 iterations, total sum of distances = 106281.
Replicate 36, 2 iterations, total sum of distances = 119799.
Replicate 35, 2 iterations, total sum of distances = 107452.
Replicate 34, 3 iterations, total sum of distances = 160830.
Replicate 33, 7 iterations, total sum of distances = 158225.
Replicate 32, 5 iterations, total sum of distances = 106281.
Replicate 31, 8 iterations, total sum of distances = 106353.
Replicate 66, 2 iterations, total sum of distances = 108879.
Replicate 65, 1 iterations, total sum of distances = 108249.
Replicate 64, 8 iterations, total sum of distances = 106353.
Replicate 63, 6 iterations, total sum of distances = 106281.
Replicate 62, 5 iterations, total sum of distances = 108879.
Replicate 61, 4 iterations, total sum of distances = 158250.
Replicate 60, 6 iterations, total sum of distances = 194064.
Replicate 59, 3 iterations, total sum of distances = 195599.
Replicate 58, 9 iterations, total sum of distances = 194407.
Replicate 57, 1 iterations, total sum of distances = 108879.
Replicate 56, 6 iterations, total sum of distances = 119047.
Replicate 55, 3 iterations, total sum of distances = 172010.
Replicate 90, 6 iterations, total sum of distances = 194064.
Replicate 89, 8 iterations, total sum of distances = 171708.
Replicate 88, 4 iterations, total sum of distances = 172144.
Replicate 87, 2 iterations, total sum of distances = 110645.
Replicate 86, 4 iterations, total sum of distances = 106281.
Replicate 85, 5 iterations, total sum of distances = 253595.
Replicate 96, 11 iterations, total sum of distances = 106281.
Replicate 95, 7 iterations, total sum of distances = 106281.
Replicate 94, 1 iterations, total sum of distances = 140868.
Replicate 100, 5 iterations, total sum of distances = 254391.
Replicate 99, 10 iterations, total sum of distances = 106281.
Replicate 84, 4 iterations, total sum of distances = 107452.
Replicate 83, 6 iterations, total sum of distances = 106281.
Replicate 82, 1 iterations, total sum of distances = 108879.
Replicate 81, 7 iterations, total sum of distances = 159118.
Replicate 80, 6 iterations, total sum of distances = 106353.
Replicate 79, 3 iterations, total sum of distances = 166241.
Replicate 93, 5 iterations, total sum of distances = 106281.
Replicate 92, 2 iterations, total sum of distances = 109069.
Replicate 91, 7 iterations, total sum of distances = 172845.
Replicate 98, 9 iterations, total sum of distances = 106281.
Replicate 97, 5 iterations, total sum of distances = 108879.
Best total sum of distances = 106281
toc
Elapsed time is 29.417556 seconds.
diary('off');
