I am looking for a simple and fast way to get the index of an entry of a Time Series Object. For example:
%ts is a time series object with the following properties:
% Common Properties:
Name: 'unnamed'
Time: [70001x1 double]
TimeInfo: [1x1 tsdata.timemetadata]
Data: [70001x1 double]
DataInfo: [1x1 tsdata.datametadata]
%first entry of ts is: 0 (time), 0.0667 (data)
%second entry of ts is: 0.01 (time), 0.0667 (data)
%adn so on...
%I'm looking for an index i, such that i is the entry at the time 500.00
indexEntry = ts.time(i);
result = indexEntry == 500.00
%and resut should be true