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

Close-button

Plot for Cody change in recent activity

  • Created by: Jim
  • Latest result: Plot created
  • Created on: 20 Feb 2012
  • Liked: 1 time

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-');
set(gca,'XTick',tm(1:2:end));
datetick('keepticks');
grid on
Tags:

Add Tags


1 comment

Ned Gulley almost 3 years ago

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.