3. Write a function called e2 age range that computes how many people fall within a certain age range. The first input, A, is a matrix of non-negative integers specifying the ages of a group of...


MATLAB Question:



3.<br>Write a function called e2 age range that computes how many people fall within a certain age range. The first input, A,<br>is a matrix of non-negative integers specifying the ages of a group of people. The second input, called min_age, is the age<br>the included people must be older than. The third, max age, is the age the included people cannot be older than. The<br>function returns the number of people that fall into the specified range. You are not allowed to use loops. Here are some<br>example runs:<br>>> e2_age_ range ([12 8 22 18 17 3 4 33],0,17)<br>ans =<br>>> e2_age_range (1:100,90,100)<br>ans =<br>10<br>>> e2_age_range ([1 3 5 7 9],5,6)<br>ans<br>%3D<br>

Extracted text: 3. Write a function called e2 age range that computes how many people fall within a certain age range. The first input, A, is a matrix of non-negative integers specifying the ages of a group of people. The second input, called min_age, is the age the included people must be older than. The third, max age, is the age the included people cannot be older than. The function returns the number of people that fall into the specified range. You are not allowed to use loops. Here are some example runs: >> e2_age_ range ([12 8 22 18 17 3 4 33],0,17) ans = >> e2_age_range (1:100,90,100) ans = 10 >> e2_age_range ([1 3 5 7 9],5,6) ans %3D

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here