Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
srishti
Posts:
12
Registered:
9/15/12
|
|
error-The data sites should be distinct.
Posted:
Oct 24, 2012 7:29 AM
|
|
load x.txt x = x'; % maximum envelope maxi=[]; mapo=[]; for i=1:250:200000; [c,d]=max(x(i:i+250)); maxi=[maxi,c] % maximum value in a window mapo=[mapo,d+(i-1)]; %position of maximum value in a window end yy =spline(mapo,maxi,1:200000); plot(mapo,maxi,'o',1:200000,yy);
I am getting an error- "The data sites should be distinct." for the spline command.
|
|
|
|