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

Close-button

Cody Players per Community 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: 31 Jan 2012

Plot Image
% Number of community problems
t1 = time1314;
d1 = data1314;

% Number of players
t2 = time1285;
d2 = data1285;

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

tn = unique([t1; t2]);
tn(tn < max(t1(1),t2(1))) = [];
tn(tn > min(t1(end),t2(end))) = [];
d1n = interp1(t1,d1,tn);
d2n = interp1(t2,d2,tn);

plot(tn,d2n./d1n);
datetick
Tags:

Add Tags


0 comments