%% Attempt to auto label vicon trial data

error('Not implemented, to not try to use this function')

clear all; close all; clc

data_file = 'original_data.mat';
load(data_file)


n_labels = size(tags,2);
n_frames = size(t.L1,2);

dist_mats = nan(n_labels,n_labels,n_frames);

for f=1:n_frames
    
    points = nan(3,n_labels);
    for i=1:n_labels
        eval(sprintf('points(:,%d) = %s(:,%d);',i,char(tags(i)),i))
    end
    
    dist_vector = pdist(points','euclidean');
    dist_mats(:,:,f) = squareform(dist_vector);
    fprintf('Frame: %d of %d (%.2f%%)\n',f,n_frames,f/n_frames*100)
end