char array comparison
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 15 Mar 2011
0 votes
You could datenum() the dates and compare them to datenum() of your search date.
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!