Be the first to rate this file! 19 Downloads (last 30 days) File Size: 1.02 KB File ID: #38162

Day of year

by

 

A function that computes the day number (or day of year) for any given date, Enhanced.

| Watch this File

File Information
Description

To use the function, simply download it to your working directory, then call the function 'doy' supplying the date vector.

Example:
doy('02-Jun-2003')

returns 153 as the day number for 2-Jun-2003.

Note that the date vector can be in any format as recognized by MATLAB's DATEVEC. You can also convert a group of dates at once.

Enjoy!

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
14 Sep 2012 Jan Simon

Please do not submit a new file for the same function, but update the existing one.
A help text is required inside the function to make is usable and useful.

Contact us