Faris Shaikh
Followers: 0 Following: 0
Feeds
提问
My code keeps breaking for a few data input, Please help! The Question is: 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 fa
function valid = valid_date(year, month, day) valid = false; if isscalar(year) && year>0 && isscalar(month) && month~=0 && iss...
5 years 前 | 1 个回答 | 0