Selecting rows related with specfic measurement time
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
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
swinnn
on 20 Nov 2013
Azzi Abdelmalek
on 20 Nov 2013
Post a sample of your data
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))
swinnn
on 21 Nov 2013
Categories
Find more on Dates and Time 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!