function SSV = time_delay_embedding(X, m, lag)

SSV = zeros(numel(X)-(m-1)*lag, m);

for i = 1:m
    SSV(:,i) = X(1+(i-1)*lag:end-(m-i)*lag);
end

