I have a time series data like this;
x = [555 554 100 10 36 20 17 5 51 70 101 40 13];
and independent variables as follow
L = numel(x);
fs = 4;
What I want is to use spline interpolation between two consecutive point of 'x' means (xi and xi+1) if the difference between two point is greater than 25. for example from the above time series abs(x4-x3)= 10-100= 90 therefore I want to interpolate between x3 and x4 with t interval of 0.05 and return all the new time series data by using a loop. The loop have to continue until the difference between every consecutive data in “x” becomes less than 25.
Thanks for your contribution in advance