Selecting rows related with specfic measurement time
4 views (last 30 days)
Show older comments
I have data from a sensor, data were recording for five days non stop. How to select specific rows, related with the certain time, e.g. 11-09-2013 11:20:00 - 11:21:49 PM ? Then, how to divide the obtained data into equal segments 2.56 seconds each? Help me please
0 Comments
Answers (2)
Image Analyst
on 20 Nov 2013
Hint: Use datenum():
>> datenum('11-09-2013 11:20:00')
ans =
735547.472222222
Azzi Abdelmalek
on 20 Nov 2013
Edited: Azzi Abdelmalek
on 20 Nov 2013
You need to specify the format of your date
datenum('11-09-2013 11:20:00 PM','dd-mm-yyyy HH:MM:SS AM')
5 Comments
Azzi Abdelmalek
on 20 Nov 2013
Check your data
celldisp(arrayfun(@(x) datestr(x, 'dd-mm-yyyy HH:MM:SS AM'),data*86400,'un',0))
See Also
Categories
Find more on Time Series Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!