char array comparison
显示 更早的评论
I have a large char array and these are dates so the array has elements as: 20070801 20070802 20070803 etc.
This array shows up as 100x8 in the workspace. I want to get all the dates which are less than 20070915. How do I use the 'find' function to achieve this or any other straight forward method?
采纳的回答
更多回答(1 个)
Walter Roberson
2011-3-15
0 个投票
You could datenum() the dates and compare them to datenum() of your search date.
类别
在 帮助中心 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!