Hi all, I try to use this function:
l=find(find(strcmp(Time,'09:00:00'))). Time is an known cell.
How could make a loop for this function to find the index of each minute:
l=find(find(strcmp(Time,'09:00:00')))
l=find(find(strcmp(Time,'09:01:00')))
l=find(find(strcmp(Time,'09:02:00')))
.
.
.
l=find(find(strcmp(Time,'10:00:00')))
l=find(find(strcmp(Time,'10:01:00')))
and so on
Thie Time cell is of 500ms steps.
Thank you

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 7월 7일

0 개 추천

d = datenum(Time);
vt = datevec(d);
out = find(vt(:,6) == 0);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

질문:

2015년 7월 7일

답변:

2015년 7월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by