View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Options Expiration Friday Date Calculator

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.34 KB File ID: #42320 Version: 1.0

Options Expiration Friday Date Calculator

by

 

Calculates the date in a given month that options will expire (Friday).

| Watch this File

File Information
Description

Takes as input a date within the month (any date). Outputs the Friday date during that month on which equity options expire.

Input can also be a list of dates, in which case output will be a list of Fridays.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
24 Aug 2013 Mark Dragovan

As written, this function does not work with R2012a.

The changes that need to be made are at the top of the program:

for i=1:size(month,1)

dv=datevec(month(i,:));

With those changes it works fine. Just what I needed.

Comment only

Contact us