E = eomday(Y,M) returns
the last day of the specified month M in the year Y.
The output E is a numeric array. The last day of any month is an integer
between 28 and 31, inclusive.
Example: E = eomday(2020,12) specifies 2020 as the year
number.
Example: E = eomday(2000:2020,12) specifies an array of year
numbers.
Month number, specified as an integer array where each element is an integer between
1 and 12, inclusive. The month numbers correspond to the months listed in the
table.
Month Number
Month Name
1
January
2
February
3
March
4
April
5
May
6
June
7
July
8
August
9
September
10
October
11
November
12
December
Example: E = eomday(2020,12) specifies 12 as the month
number.
Example: E = eomday(2020,1:6) specifies an array of month
numbers.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.