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

Close-button

Cody Activity per Problem

This plot is broken.

Error using griddedInterpolant
The grid vectors are not strictly monotonic increasing.

Error in matlab:matlab.internal.la
  • Created by: Ned Gulley
  • Latest result: Error using <a href="matlab:matlab.internal.language.introspective.errorDocCallback('griddedInterpolant')" style="font-weight:bold">griddedInterpolant</a> The grid vectors are not strictly monotonic increasing. Error in <a href="matlab:matlab.internal.la
  • Created on: 14 May 2012

Normalize Cody activity (as measured by the Recent Activity page) with Problem count.

Plot Image
% Cody Problems
t1 = time1282;
d1 = data1282;

% Cody recent activity count
t2 = time1283;
d2 = data1283;

[t1,ix] = unique(t1);
d1 = d1(ix);
[t2,ix] = unique(t2);
d2 = d2(ix);

t = unique([t1; t2]);
t = t( (t >= max(t1(1),  t2(1)  )) & ...
       (t <= min(t1(end),t2(end))) );
d1 = interp1(t1,d1,t);
d2 = interp1(t2,d2,t);

plot(t, d2./d1, 'LineWidth', 2, 'Color','red')

datetick
Tags:

Add Tags


0 comments