Since you are new, let us show you how Trendy works.


Plot for Cody change in recent activity

Included from trend description:

What is the change in activity happening on Cody?

Plot Image
% time1300 and data1300 available for use
% for How is Cody Trending?
% Cody recent activity count
%   time vector is: time1300
%   data vector is: data1300
lookback = 30;
df = diff(data1300(end-lookback:end));
tm = time1300(end-(lookback-1):end);
plot(tm, df, 'bs-');
grid on

Add Tags

1 comment

You might want to normalize by the time between samples. If your time sampling is irregular (you miss a day or two, for example), your diff will be thrown off.