last daily observation in a month (not lbusdate)

조회 수: 2 (최근 30일)
Dave
Dave 2017년 11월 16일
답변: Dave 2017년 11월 16일
is there a way to keep only the last observation in a month from a datenum vector? For example
A=
729530
729537
729544
729551
729558
729565
That is
20-May-1997
27-May-1997
03-Jun-1997
10-Jun-1997
17-Jun-1997
24-Jun-1997
So the new vector should be only rows 2 and 6.
B=
729537
729565
This is not lbusdate.

채택된 답변

Dave
Dave 2017년 11월 16일
Solved, used accumarray with @max

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by