I need someone to do (( MATLAB )) !

I need someone to do (( MATLAB )) !

this is the assignment:

I need complete answers please pay attention to the questions listed!

302 is the recitation number. I’ll change the name

2B:

1. Create another script and name it FirstName_LastName_Rec#_MatLab2b.m and save it. Like with the template script from 2A, ensure that you have your name, 101 Spring 2019, recitation section, date, and a brief description of the script file as comments at the top of the file.

——————————-

2. You have measured the heart rate for 3 subjects of similar age, health, and fitness level before and after exercise. The results are stored in a matrix as follows:

The first column contains the heart rates of the subjects before exercise and the 2nd column contains the heart rates of the subjects after exercise. Each row represents a given subject. Example, row 1 contains the heart rate of patient 1 before and after exercise, row 2 contains the heart rates for patient 2, etc.

a. Create the matrix given above.

b. Using indexing retrieve the heart rates before exercise and store the result in a vector called BeforeExercise.

c. Using indexing retrieve the heart rates after exercise and store the results in a vector called AfterExercise.

d. Calculate the average heart rate before exercise using the command mean(BeforeExercise) and store the result in an appropriately named variable. You can do help meanto learn more about the mean function. Next, use the mean function to calculate the average heart after exercise and again store the result in an appropriately named variable. Display both values. Note, the variable names you choose should reflect what those variables are.

e. Which one is greater, average heart rate before exercise or the average heart rate after exercise? Give your answer as a comment in your script file. Write the value of both average heart rates in your comment.

Submit your FirstName_LastName_Rec#_MatLab2b.m file via your recitation by Monday 04/08 at 11:59 pm

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30


WHATSAPP CHAT: +1 (781) 253-4162


Click ORDER NOW..

order custom paper