Weeknumber

Calculate ISO-weeknumber

You are now following this Submission

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].

Cite As

Gunnar Aronsen (2026). Weeknumber (https://www.mathworks.com/matlabcentral/fileexchange/31288-weeknumber), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0