| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
Days = yeardays(Year, Basis)
Year | Enter as a four-digit integer. |
Basis | (Optional) Day-count basis of the instrument. A vector of integers.
|
Days = yeardays(Year, Basis) returns the number of days in the given year, based upon the day-count basis.
Days = yeardays(2000)
Days =
366
Days = yeardays(2000, 1)
Days =
360
days360, days365, daysact, year, yearfrac
![]() | year | yearfrac | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |