Community Profile


Amina Sadia

Last seen: 26 days ago
1 total contributions since 2020

Amina Sadia's Badges

  • First Answer

View details...

Contributions in
View by

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.
function valid = valid_date(year,month,date) a = rem(year,400); b = rem(year,4); c = rem(year,100); %check if either year, m...

3 months ago | 1