No BSD License  

Highlights from
weeknum

5.0

5.0 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 1.55 KB File ID: #22663

weeknum

by Hallvard

 

12 Jan 2009

Returns the week number(s) corresponding to a vector of serial date numbers.

| Watch this File

File Information
Description

w = weeknum(daynums)
WEEKNUM returns vector W containing the week numbers corresponding to the dates in input vector DAYNUMS of serial date numbers.
Week 1 is the first 4-day week of the year
NB! Using Monday as first day of the week.

Quick and dirty code. No error checking. Use with caution.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
29 Nov 2010 Kyriakos

Seems to do what it says on the tin

24 Aug 2011 Pieter Schevenels  
24 Aug 2011 Pieter Schevenels  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
serial date numbers Cristina McIntire 12 Jan 2009 16:37:30
date Hallvard 12 Jan 2009 16:37:53

Contact us at files@mathworks.com