find a value in a vector of type char

i have vector composed from date and time for exemple:
%
date_time=[date time]
date_time=['06.09.2010' '1:18.25']
date is a 40000*1 cell
time is a 40000*1 cell
how could i find the index of a time_date= '7.5.2012' '2:20:59' with the function find or any other function?
thank you

1 Comment

Jan
Jan on 15 Nov 2012
Edited: Jan on 15 Nov 2012
Are you looking for '7.5.2012' '2:20:59', while the data contain '07.07.2012' '02:20:59'? Using leading zeros would be a marvelous idea obviously.

Sign in to comment.

 Accepted Answer

ismember(data_time,{'7.5.2012' '2:20:59'},'rows');

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!