function f=fd(x,fs)
x=(x-mean(x))/std(x);
n = length(x);
t=(0:1/fs:(n-1)/fs);
t=t';
x1=[t x'];
for i=1:n-1
d(i)=sqrt(abs(x1(i+1,1)-x1(i,1))^2+abs(x1(i+1,2)-x1(i,2))^2);
dmax(i)=sqrt((abs(x1(i+1,1)-x1(1,1))^2+abs(x1(i+1,2)-x1(1,2))^2));
end
totlen=sum(d);
avglen=mean(d);
maxdist=max(dmax);
numstep=double(totlen/avglen);
den=double(maxdist/totlen);
[ 1.92244 , ……………………………
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067,
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067,
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067,
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067,
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067,
1.9592291, 1.9729414, 1.9554538, 1.9625572, 1.9517543, 1.9695913, 1.963067 ]
How can i detect the repetition of my last 7 elements of an ArrayList?
thanks in advance
T.