Question: Write a function femaleglucosemeal(A) that takes a matrix A with 3 columns where the first column contains 0 (representing male) or 1 (representing female) and

Write a function femaleglucosemeal(A) that takes a matrix A with 3 columns where the first column contains 0 (representing male) or 1 (representing female) and the second and third columns contain the blood glucose levels before and after a meal. Return the average increase in glucose levels of female patients after a meal.

Should return the following:

>> m=[1 130 150 0 134 97 1 100 156 1 80 124 0 72 241]; >> % 1st, 3rd, and 4th patients are females. >> % Their glucose increase by 20,56,44, respectively. >> % Average female glucose increase is: 40. >> femaleglucosemeal( m ) ans = 40 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!