![maybeemmamay](/avatars/38449.jpg)
maybeemmamay
22.08.2019 •
Mathematics
Fractions can be added and subtracted only if they're fractions
Solved
Show answers
More tips
- F Family and Home What s That Noise When a Kettle Boils? The Science of Water and Steam...
- S Style and Beauty Ultimate Guide on How to Care for Suede Shoes...
- S Sport Running: How to Do It Right?...
- F Food and Cooking How to Cook Spaghetti Right – Secrets and Tips...
- P Philosophy Personal attitude towards Confession: how to prepare and undergo the procedure correctly?...
- H Health and Medicine Flu: How to Recognize It by the First Symptoms?...
- F Food and Cooking How to Sober Up Quickly? Important Facts and Tips...
- H Health and Medicine How to Properly Take a Blood Sugar Test?...
- H Health and Medicine Simple and Effective: How to Get Rid of Cracked Heels...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
Answers on questions: Mathematics
- M Mathematics What fraction of the days did it take longer than 3 minutes to get to the cafeteria? 7/15, 4/15, 8/15, or 11/15...
- M Mathematics Write a recursive rule for the sequence. 243, 81, 27, 9, 3, .....
- M Mathematics 59: 14 the diagram shows a vertical number line. what is the position of point x? 0 -16 -12 12...
- M Mathematics Which of these shapes os an obtuse isosceles triangle...
- M Mathematics The length of a rectangle is 6 times it with if the area of the rectangle is 294 m² find its perimeter...
- M Mathematics Simplify (100)^2+(49)^2/(100)^2-100(49)+(49)^2...
- M Mathematics Andy cut a tuna and a chicken sandwich into a total of 18 pieces. he cut the tune into 12 more pieces than the chicken. andy are 5 pieces of the tuna. what fraction of the tuna...
- M Mathematics Given this information, in order to use his 4 hours of study time to get the best exam score possible, how many hours should he have spent working on problems and how many should...
- M Mathematics Suppose we know two of the three people have alzheimer s disease. what is the conditional probability that they are both younger than 80 years of age?...
- M Mathematics Data from a sample of citizens of a certain country yielded the following estimates of average tv viewing time per month for all the citizens. the times are in hours and minutes....
Ответ:
Ответ:
Check the explanation
Step-by-step explanation:
function [valid]=valid_date(y, m, d)
if ~isscalar(y) || ~isscalar(m) || ~isscalar(d)
valid=false;
return
end
if y>=1 && m>=1 && m<=12 && (ismember(m, [4 6 9 11]) && ismember(d, [1:30])) || (ismember(m, [1 3 5 7 8 10 12]) && ismember(d, 1:31))
valid=true;
elseif m==2 && (mod(y,4)==0 && mod(y,100)~=0 || mod(y,400)==0 && mod(y,100)==0) && ismember(d, 1:29)
valid=true;
elseif m==2 && ismember(d, 1:28)
valid=true;
else
valid=false;
return
end
end