Wow, what a load of mathematical gobbledygook. Could they make it any more obtuse? Anyway, here is a start:
s = load('data1.mat')
x = s.data1(:, 1);
y = s.data1(:, 2);
N = length(y);
plot(x, y, 'b.', 'LineWidth', 2);
grid on;
xlabel('x', 'FontSize', 20);
ylabel('y', 'FontSize', 20);
t = zeros(1, N);
denominator = abs(diff(x) .^ 2 + diff(y) .^ 2)
for k = 2 : N - 1
numerator =
t(k) = t(k - 1) + numerator / denominator;
end
t(end) = 1;