Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: error-The data sites should be distinct.
Replies: 2   Last Post: Oct 24, 2012 11:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
srishti

Posts: 12
Registered: 9/15/12
error-The data sites should be distinct.
Posted: Oct 24, 2012 7:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.