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

Close-button

Trend per Plot Ratio on Trendy

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: 03 May 2012

Plot Image
% time1547 and data1547 available for use
% for Number of Plots in Trendy
% 
t1 = time1546;
d1 = data1546;
t2 = time1547;
d2 = data1547;

[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,d1n./d2n);
title('Trend per Plot Ratio on Trendy')
ylabel('trends/plot')
datetick
Tags:

Add Tags


0 comments