odd arguments for datemnth in Financial Toolbox

조회 수: 3 (최근 30일)
Michael Wang
Michael Wang 2018년 6월 7일
The datamnth function takes a basis argument. This is quite odd: as the description of the function indicates datemnth will produce a series of future or past DATEs, NOT YEARFRACs. However, in capital markets, the date roll convention and the daycount convention are two independent concepts: date roll determines how to determine a future or a past date from a start date, and day count determines how to calculate number of days between two given dates. Thus the inclusion of basis (or more accurately day count convention) in the datemnth function is confusing and may produce unexpected date series.
Or am I missing something? I tried to find examples to show how basis affects the results but couldn't find any so this question.
On a lesser note, endMonthRule seems to simply mean dayFlag = 2 so redundant, unless I miss-interpreted the documentation.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Holidays / Seasons에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by