Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MatLab In an effort to study how a womens age effects the rate of calorie burn, 50 individuals heart rates during moderate exercise and weight

MatLab

In an effort to study how a womens age effects the rate of calorie burn, 50 individuals heart rates during moderate exercise and weight were measured for each of the six age groups: 20-29, 30-39, 40-49, 50-59, 60-69, and 70-79. This moderate exercise lasted 1 hour. After exercising, each individuals weight was measured. This data was saved in a file called Drill8.mat. Within each variable, the column number represents the age group going from youngest to oldest. In each column are the measured values for all 50 individuals for the age group. Heart rate was measured in BPM and weight was measured in kg.

Part 1

Create a script called FirstName_LastName_HW8.m that loads Drill8.mat and plots the means of heart rate and weight against age group in separate graphs within the same figure. You may represent each age group by its youngest age:

Age = [20, 30, 40, 50, 60, 70].

Part 2

Calories burned in women during moderate exercise can be estimated by the equation:

Calories = (.447*Heart Rate(BPM) - 0.026*Weight(kg) + .074*Age(decades-20.402)*Time(min)/4.184

Plot the mean of calories burned against age group in a separate figure. Is there a positive, negative, or no correlation? Show your answer in the command window using display or fprintf.

Part 3

Create a function called Calories_Burned.m that takes function inputs (dont use input() within the function) of age, weight, heart rate, and the time spent exercising. This function must then output AND display the number of calories burned using the equation above, replacing Age(decades) with Age(years).

Part 4

Using a loop, create a vector that uses Calories_Burned.m to determine how many calories a woman weighing 150kg will burn exercising with a heart rate of 130bpm for 2 hours as they age from 20 to 80. Plot this vector against age.

I don't know how to upload the data file for the weight and heartrate it's a 50x6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions