Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is one of the skills required for independent learning?Explain

Answered: 1 week ago