photo

Jatan Shah


Last seen: ungefär 3 år ago Active since 2021

Followers: 0   Following: 0

Statistics

All
  • First Answer
  • Solver

View badges

Feeds

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 nargin<3 valid = false; elseif ~isscalar(year) || year<1 || yea...

mer än 3 år ago | 3