Community Profile

photo

David Goh


Last seen: 7 días ago Active since 2022

Statistics

  • First Answer

View badges

Content Feed

View by

Answered
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,day) if isscalar(year) == 1 && isscalar(month) == 1 && isscalar(day) == 1 && year > 0 ...

alrededor de 2 meses ago | 0