Main Content

yeardays

年中的天数

说明

示例

Days = yeardays(Year) 返回给定 Year 中的天数。

示例

Days = yeardays(___,Basis) 根据可选计日参量 Basis 返回给定 Year 中的天数。

示例

全部折叠

求给定 Year 中的天数。

Days = yeardays(2000)
Days = 366

使用可选参量 Basis 求给定 Year 中的天数。

Days = yeardays(2000, 1)
Days = 360

输入参数

全部折叠

数据类型: single | double

计日基数,指定为整数向量,其中的值为 012345678910111213

  • 0 = actual/actual(默认)

  • 1 = 30/360 (SIA)

  • 2 = actual/360

  • 3 = actual/365

  • 4 = 30/360 (BMA)

  • 5 = 30/360 (ISDA)

  • 6 = 30/360 (European)

  • 7 = actual/365 (Japanese)

  • 8 = actual/actual (ICMA)

  • 9 = actual/360 (ICMA)

  • 10 = actual/365 (ICMA)

  • 11 = 30/360E (ICMA)

  • 12 = actual/365 (ISDA)

  • 13 = BUS/252

有关详细信息,请参阅Basis

数据类型: single | double

输出参量

全部折叠

给定 Year 的天数,以非负整数形式返回。

版本历史记录

在 R2006a 之前推出