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

Close-button

Answer Status after 7 Days (normalized)

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: 27 Mar 2012
  • Liked: 2 times

Plot Image
% Unanswered
t1 = time1527(~isnan(data1527));
d1 = data1527(~isnan(data1527));
[t1,ix] = unique(t1);
d1 = d1(ix);

% Answered/Not Accepted
t2 = time1528(~isnan(data1528));
d2 = data1528(~isnan(data1528));
[t2,ix] = unique(t2);
d2 = d2(ix);

% Answered/Accepted
t3 = time1529(~isnan(data1529));
d3 = data1529(~isnan(data1529));
[t3,ix] = unique(t3);
d3 = d3(ix);

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

dall = d1n + d2n + d3n;

area(tn,100*[d3n d2n d1n]./[dall dall dall], ...
  'EdgeColor',[215 215 215]/255);

datetick
legend({'Answered/Accepted','Answers/Not Accepted','Unanswered'},'Location','NorthOutside')
colormap([178 171 115; 235 200 121; 201 118 92]/255)
box on
ylim([-5 105])
Tags:

Add Tags


0 comments