Thank you for this tool, very useful!
I discovered a little error, that it will sometimes give the previous week when you give it a full weeknum for a monday.
This seems to be fixed when you floor the datenum, removing all information but the day.
24 Aug 2011
Returns the week number(s) corresponding to a vector of serial date numbers.