From: Lisandro on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <hvbjbc$bhd$1(a)fred.mathworks.com>...
> "Lisandro " <lisandro.quinones(a)gmail.com> wrote in message <hvbh89$1g3$1(a)fred.mathworks.com>...
> > Hi all,
> >
> > I have 2 columns of 1000 points of data each that I wish to use as my x and y inputs for interp1, sadly my data is repetitive by definition and interp1 needs distinctive x data.
> >
> > I was looking in the Mathworks Community and came across the Consolidator by John D'Errico which seems to do the job. However, when I use it, it deletes/removes all of the repetitive data points just like the 'unique' function would do; it also orders the data in ascending order.
> >
> > Someone out there well versed with the Consolidator or with an alternate solution to my problem? I would like my data to retain its original order and the repetitive points NOT to be removed but just modified by a 0.0001 sum; i.e.:
> >
> > 600 to 600.0001
> > 600 to 600.0002
> > 600 to 600.0003
> >
> > Thank you!
>
> So why don't you ust add 0.0001, or show an example of a reasonable input and the desired output.
>
> Oleg

That would be precisely my question Oleg, how could I add 0.0001 (0.0002 and 0.0003 from the example above) to my data without going one by one? Remember that I have more than 1000 data points.

Thanks,
Lisandro
From: ImageAnalyst on
So if you have 2 Y values for certain X values, then why are you
trying to do an interpolation instead of a regression of some other
kind of fit, such as this nice fitting tool, also by John:
http://www.mathworks.com/matlabcentral/fileexchange/24443-slm-shape-language-modeling