Day of the week: Difference between revisions

(→‎{{header|CoffeeScript}}: oops, no such thing as output tag)
Line 935:
gives back:
<lang Mathematica>{2011,2016,2022,2033,2039,2044,2050,2061,2067,2072,2078,2089,2095,2101,2107,2112,2118}</lang>
 
=={{header|MATLAB}} / {{header|Octave}}==
 
<lang Matlab> t = datenum([[2008:2121]',repmat([12,25,0,0,0], 2121-2007, 1)]);
t = t(strmatch('Sunday', datestr(t,'dddd')), :);
datestr(t,'yyyy')
</lang>
 
 
Output:
<pre> ans =
2011
2016
2022
2033
2039
2044
2050
2061
2067
2072
2078
2089
2095
2101
2107
2112
2118
</pre>
 
=={{header|Modula-3}}==
Anonymous user