i have two time series data with 8280X1 dim each recorded with 10 minutes interval, and i want to calculate offset(y-intercept) and slope(m) of two time series in successive interval(every 24hrs) in easy way. Is there matlab code for that. so far i did this
polyfit(wl1, wl2, 1) % wl1 and wl2 is matrix column of time series
ans =
1.0184 -4.3500
but this take whole data. to do manual every 72 row can take weeks.
help