Compare date & time (efficiency question)
古いコメントを表示
Hello everyone
Quick 2 questions:
Background: I did import lots of data using "textscan" where times and dates are crucial biases for analysis (certain actions happened at certain times on certain dates) therefor I need to pick and choose data relative to certain times & dates (i.e. if time of dataA is less than 10:00:00, do such & such). I know I can convert dates & times using “datenum” & “datestr”, then do whatever comparison I need & execute actions.
My questions are:
1) Are there any other code method that I can use to compare dates & time instead of the above codes/method?
2) In terms of computing efficiency (speed, memory, etc.), is it better if the pick & choose dates & times that I need to look at while I am importing the data using “textscan”? or shall I stick to what I am doing of importing times & dates as strings, convert them into numerical, compare & actions, then convert them into strings (if I need to)?
Thanks
Tariq
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!