Abhinav Gadge
Followers: 0 Following: 0
Feeds
已回答
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.
%works correctly for all cases function valid=valid_date(y,m,d) days=[31,28,31,30,31,30,31,31,30,31,30,31] if (mod(y,4)==0 ...
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.
%works correctly for all cases function valid=valid_date(y,m,d) days=[31,28,31,30,31,30,31,31,30,31,30,31] if (mod(y,4)==0 ...
2 years 前 | 3