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

Close-button

Daily High-Low in Honolulu

This plot is broken.

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

Error in /opt/mls
  • Created by: Ned Gulley
  • Latest result: Error using <a href="matlab:helpUtils.errorDocCallback('griddedInterpolant')" style="font-weight:bold">griddedInterpolant</a> The grid vectors are not strictly monotonic increasing. Error in <a href="matlab:helpUtils.errorDocCallback('interp1', '/opt/mls
  • Created on: 06 Dec 2011
  • Liked: 2 times

Plot Image
t1 = time1176;
d1 = data1176;
t2 = time1154;
d2 = data1154; 

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,'r');
hold on
plot(tn,d1n,'b');
fill([tn; flipud(tn)],[d1n; flipud(d2n)], ...
  0.9*[1 1 1],'EdgeColor','none');
hold off
ylim([0 100])
datetick
Tags:

Add Tags


2 comments

Image Analyst 2 months ago

Plot is broken. Can you fix it?

Ned Gulley 2 months ago

Thanks for the note. I've reported the problem to the right people here.