Question
Please explain how I should go about this problem in Matlab. I was given a text file (heart.txt) that contains all the heartbeats taken from
Please explain how I should go about this problem in Matlab. I was given a text file (heart.txt) that contains all the heartbeats taken from a patient within one-minute intervals. Thank you for your help.
I apologize, I do not know how to post the file on Chegg, but I did copy and paste the heartbeat data below. Thank you again for your help.
76 71 72 79 75 79 73 76 77 71 77 74 71 75 72 72 73 72 72 71 77 73 76 77 75 76 75 72 75 79 79 73 73 76 77 75 73 80 71 72 72 72 77 76 71 80 78 78 71 79 80 80 79 78 76 72 74 72 71 80 74 73 74 75 77 71 79 76 79 74 75 71 72 77 74 79 72 80 76 78 80 73 75 75 78 79 72 72 74 71 76 74 72 73 80 77 75 80 72 78 78 76 72 76 73 72 73 79 71 73 71 75 71 79 72 71 74 75 72 80 74 73 71 73 71 76 78 77 71 71 78 80 76 72 79 74 73 78 71 71 77 77 76 78 78 78 73 77 76 74 71 78 74 77 78 72 72 76 75 79 78 78 71 71 71 78 80 77 72 78 72 72 77 74 77 78 76 78 73 78 80 79 71 74 74 77 76 78 74 73 71 78 73 74 76 73 77 75 72 78 72 73 73 76 71 75 72 72 78 73 77 80 75 45 78 75 77 72 80 72 73 78 75 78 74 73 71 77 75 75 77 71 74 78 77 72 72 71 71 75 77 78 76 72 77 72 72 71 72 72 72 74 74 73 73 79 78 54 58 58 71 80 78 76 74 72 77 80 72 73 74 71 77 75 80 75 77 72 74 72 78 79 74 77 73 76 79 76 74 73 75 75 74 76 78 75 75 72 71 73 74 77 80 80 75 73 78 78 78 78 72 92 98 73 71 79 72 72 77 90 76 78 72 80 76 77 71 79 78 72 76 74 76 74 75 72 73 71 80 77 80 72 80 78 76 75 73 78 73 71 78 77 78 77 75 74 79 74 79 78 79 76 77 80 75 71 79 77 74 80 73 77 77 74 72 71 75 72 78 74 79 78 76 72 80 73 80 73 74 71 77 72 71 78 74 77 74 77 71 80 79 78 79 74 77 76 76 73 73 75 73 79 80 71 76 71 79 89 71 80 71 77 78 76 79 79 77 72 73 72 71 72 77 80 74 75 80 80 77 80 78 74 77 73 73 77 76 75 77 78 76 76 76 76 71 78 80 74 80 74 79 75 75 73 72 74 78 78 77 71 79 80 78 71 74 78 78 73 73 77 75 77 73 72 79 78 80 72 72 71 75 72 79 71 71 76 78 74 72 74 73 76 80 77 72 74 71 76 75 80 79 75 79 72 74 80 80 78 77 74 80 72 78 77 79 74 78 79 60 59 80 76 74 77 74 78 75 75 77 80 74 79 78 80 71 74 77 73 73 78 77 76 77 71 74 75 73 78 79 73 78 72 79 72 76 74 79 76 75 79 74 75 80 71 80 72 77 76 77 74 77 79 71 71 80 77 73 75 72 73 73 74 72 74 62 79 71 80 74 71 78 77 76 77 71 74 75 73 78 79 73 78 72 79 72 76 74 79 76 75 79 74 75 80 71 80 72 71 79 80 71 80 71 77 78 76 79 79 77 72 73 72 71 72 77 80 74 75 80 80 77 80 78 74 77 73 73 77 76 75 77 78 76 76 76 76 71 78 80 74 80 74 79 75 75 73 72 74 78 78 77 71 79 80 72 72 73 72 72 71 77 73 76 77 75 76 75 72 75 79 79 73 73 76 77 75 73 80 71 72 72 72 77 76 71 80 78 78 71 79 80 80 79 78 76 72 74 72 71 80 74 73 74 75 77 71 79 76 79 74 75 71 72 77 74 79 72 80 76 78 80 73 75 75 78 79 72 72 74 71 76 80 72 73 78 75 78 74 73 71 77 75 75 77 71 74 78 77 72 72 71 71 75 77 78 76 72 77 72 72 71 72 72 72 74 74 73 73 79 78 54 58 58 71 80 78 76 74 72 77 80 72 73 74 71 77 75 80 75 77 72 74 72 78 79 74 77 73 76 79 76 74 73 75 75 74 76 78 75 75 72 71 73 74 77 80 80 75 73 78 78 78 78 72 92 98 73 71 79 72 72 77 79 76 78 72 80 76 77 71 79 78 72 76 74 76 74 75 72 73 56 80 77 80 72 80 78 76 75 73 78 73 71 78 77 78 77 75 74 79 74 79 78 79 76 77 80 75 71 79 77 74 80 73 77 77 74 72 71 75 72 78 74 79 78 76 72 80 73 80 73 74 71 77 72 71 78 74 77 74 77 71 80 79 78 79 74 77 76 76 73 73 75 73 79 80 71 76 71 79 80 71 80 71 77 78 76 79 79 77 72 73 72 71 72 77 80 74 75 80 80 77 80 78 74 77 73 73 77 76 75 77 95 76 76 76 76 71 78 80 74 80 74 79 75 75 73 72 74 78 78 77 71 79 80 78 71 74 78 78 73 73 77 75 77 73 72 79 78 77 74 80 72 78 77 79 74 78 79 60 59 80 76 74 77 74
A sudden change is defined as a heart rate that is more than 20% different (larger or smaller) than the average of the previous five heart rate values. Thus, you would need to check for sudden changes from the 6th data point onward. If the program identifies a sudden change, it should display a warning like this with the time the anomaly was detected (if there is an increase): WARNING - Abnormal increase in heart rate at minute 65 The program should display if there was a sudden increase or decrease in the heart rate. All sudden changes should be reported. If there are no sudden changes, the program should display: No abnormal changes detected Your program should include a script that has: (i) a function call to obtain the data from the text file a separate function call that analyzes the data and creates a new array or variables to store any information about abnormal increases or decreases a separate function to display any warnings and write all the warnings to a text file along with the time the warning was detected. There should not be anything printed to the command window or file from the 2nd analysis function. A sudden change is defined as a heart rate that is more than 20% different (larger or smaller) than the average of the previous five heart rate values. Thus, you would need to check for sudden changes from the 6th data point onward. If the program identifies a sudden change, it should display a warning like this with the time the anomaly was detected (if there is an increase): WARNING - Abnormal increase in heart rate at minute 65 The program should display if there was a sudden increase or decrease in the heart rate. All sudden changes should be reported. If there are no sudden changes, the program should display: No abnormal changes detected Your program should include a script that has: (i) a function call to obtain the data from the text file a separate function call that analyzes the data and creates a new array or variables to store any information about abnormal increases or decreases a separate function to display any warnings and write all the warnings to a text file along with the time the warning was detected. There should not be anything printed to the command window or file from the 2nd analysis functionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started