Community Profile


Martín Avalos Postigo

Last seen: más de 1 año ago Active since 2021


  • First Answer

View badges

Content Feed

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,day) if sum(rem([year,month,day],1))==0 && sum([year,month,day]>0)==3 if ismember(m...

más de 1 año ago | 2