Code covered by the BSD License  

Highlights from
Weeknumber

1.0

1.0 | 2 ratings Rate this file 3 Downloads (last 30 days) File Size: 2.11 KB File ID: #31288

Weeknumber

by Gunnar Aronsen

 

03 May 2011

Calculate ISO-weeknumber

| Watch this File

File Information
Description

M-file that calculate weeknumber based on a date. Date can be given as scalar or a vector. Datevalues can also be provided as textvalues, but then must a second variable describing the that format also be read in.

In addtion can a third variable be sat to true or false, and this will add year number to the output.

Given the date 01.01.2011, the function will return [52 2011].

MATLAB release MATLAB 7.11 (R2010b)
Other requirements None
Tags for This File  
Everyone's Tags
isoweek, number of weeks, week based on date, weeknumber
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
20 Jul 2012 Fabrice

Bugs in the code.
fg

04 May 2011 Gunnar Aronsen

Correct information is that the m-file contains a function, that calculate week number, and corresponding year. I have done a checks for weeks around new-years from 1980 to 2020 without finding any errors.

04 May 2011 Joachim  

Contact us