This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Determine uniqueness


uniq = ftsuniq(dates_and_times)
[uniq,dup] = ftsuniq(dates_and_times)



A single column vector of serial date numbers. The serial date numbers can include time-of-day information.


uniq = ftsuniq(dates_and_times) returns 1 if the dates and times within the financial time series object are unique and 0 if duplicates exist.

[uniq,dup] = ftsuniq(dates_and_times) additionally returns a structure dup. In the structure

  • dup.DT contains the character vectors of the duplicate dates and times and their locations in the object.

  • dup.intIdx contains the integer indices of duplicate dates and times in the object.

Introduced before R2006a

Was this topic helpful?