Community Profile

photo

Mohamed Amr


Last seen: plus de 3 ans il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

Feeds

Afficher par

Question


Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
unction valid = valid_date(year,month,day) if year < 1 || ~isscalar(year) || year ~= fix(year) valid1 = false;...

plus de 3 ans il y a | 1 réponse | 0

1

réponse