From: Lisandro on
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!