Question: Answer using matlab Question 3 ( 8 points ) You are tasked with analyzing data collected from a fitness tracker worn by a person during

Answer using matlab
Question 3(8 points)
You are tasked with analyzing data collected from a fitness tracker worn by a person during their 10km run.
The tracker records the distance walked (in kilometers) and the corresponding number of total calories burned at
each km. Your goal is to use MATLAB to fit a polynomial curve to the data, visualize the fit, and predict the
number of total calories burned for a given distance. The data is provided in vectors below. For your
convenience, they are also in a text file linked to this assignment on Canvas, so that you can copy this directly
into your script file.
distance ,
8.5,9,9.5,10;
calories_burned ,
1435,15bar(7),1725,1880,2050,2230,2420,2620;
Analyze the data by doing the following:
Plot the data points for total calories burned vs distance. Label the graph according to ENGR 130
standards.
Add a best-fit line to your plot. Experiment with different degrees of polynomials to find the best fit.
Add a legend to the graph.
Use your data fit to calculate the predicted number of calories burned for a distance of 5 kilometers and
display the result to the command window with some descriptive text. Report the calories with one
decimal place.
Calculate the difference between the measured total calories at 5 kilometers and the predicted number of
calories burned for a distance of 5 kilometers; display the result to one decimal place to the command
window with descriptive text.
 Answer using matlab Question 3(8 points) You are tasked with analyzing

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!