Financial Toolbox    

Functions - By Category

This chapter contains detailed descriptions of all the functions in the Financial Toolbox. The categories of functions described are:

Handling and Converting Dates

Current Time and Date

now

Current date and time.

today

Current date.

Date and Time Components

datefind

Indices of date numbers in matrix.

datevec

Date components.

day

Day of month.

eomdate

Last date of month.

eomday

Last day of month.

hour

Hour of date or time.

lweekdate

Date of last occurrence of weekday in month.

minute

Minute of date or time.

month

Month of date.

months

Number of whole months between dates.

nweekdate

Date of specific occurrence of weekday in month.

second

Second of date or time.

weekday

Day of the week.

year

Year of date.

yeardays

Number of days in year.

Date Conversion

datedisp

Display date entries.

datenum

Create date number.

datestr

Create date string.

m2xdate

MATLAB serial date number to Excel serial date number.

x2mdate

Excel serial date number to MATLAB serial date number.

Financial Dates

busdate

Next or previous business day.

datemnth

Date of day in future or past month.

datewrkdy

Date of future or past workday.

days360

Days between dates based on 360-day year.

days365

Days between dates based on 365-day year.

daysact

Actual number of days between dates.

daysdif

Days between dates for any day-count basis.

fbusdate

First business date of month.

holidays

Holidays and non-trading days.

isbusday

True for dates that are business days.

lbusdate

Last business date of month.

wrkdydif

Number of working days between dates.

yearfrac

Fraction of year between dates.

Coupon Bond Dates

accrfrac

SIA
Fraction of coupon period before settlement.

cfamounts

SIA
Cash flow and time mapping for bond portfolio.

cfdates

SIA
Cash flow dates for a fixed-income security with periodic payments.

cfport


Portfolio form of cash flow amounts.

cftimes

SIA
Time factors corresponding to bond cash flow dates.

cpncount

SIA
Coupon payments remaining until maturity.

cpndaten

SIA
Next coupon date after settlement date.

cpndatenq

SIA
Next quasi coupon date for fixed income security.

cpndatep

SIA
Previous coupon date before settlement date.

cpndatepq

SIA
Previous quasi coupon date for fixed income security.

cpndaysn

SIA
Number of days between settlement date and next coupon date.

cpndaysp

SIA
Number of days between previous coupon date and settlement date.

cpnpersz

SIA
Number of days in coupon period containing settlement date.


  Function Reference Formatting Currency