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.
As written, this function does not work with R2012a.
The changes that need to be made are at the top of the program:
With those changes it works fine. Just what I needed.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.