Question: Create code that uses a while loop to also perform a running average of 5 data points. Use a counter to ensure the while loop
Create code that uses a while loop to also perform a running average of data points. Use a counter to ensure the while loop will end at iterations. Save the data to a variable titled ecgWhileMean. Plot ecgRaw vs ecgWhileMean. Code this in your m file so that the TA will see the figure appear when the code is run.
a Hint: The mean calculation is the same as the other questions, but the loop structure is different
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
