Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB 6.2 Charging AED (plot charge vs. time) rest this Sudden cardiac arrest is one of the leading causes of death in the US. Over
MATLAB 6.2 Charging AED (plot charge vs. time) rest this "Sudden cardiac arrest is one of the leading causes of death in the US. Over 350,000 people will suffer from sudden cardiac a year. It can happen to anyone, anytime, anywhere and at any age. An authomated external defibillato y to operate tool for someone with no medical background." for restoring a regular heart rhythm during sudden cardiac arrest and is an eas -https://www.redcross.org/take-a-class/learn-about-aeds The circutry inside the AED includes a resistor (R), capacitor (C), and battery (V) When these components are connected in series, a charge Q builds up on the capacitor according to the formula Q(1) = CV(1-e-t/RC) if there is no charge on the capacitor at time t-0. Assume the AED is activated at t = 0 write a script to monitor t every 0.1 seconds in order to detect when it reaches a level of 8 units of charge, given that V - 9, R 4, and C -1. Use a w display the time and charge every 0.1 seconds until the charge frst exceeds 8 units (ie. the last charge displayed must exceed 8), Use ay the time and charge. After the charge on the capacitor exceeds 8 units, the AED is sufficiently charged to deliver a strong electric shock to restore the heart to normal rhythm. Save the values of charge in an array named Q. Plot charge vs time (i.e. plot charge on the y-axis, time on the x-axis). Your Script Reset MATLAB Documentation 11 %charging AED Xconsider using a loop counter to index array Q, for example | 4:k+0; %initialize loop counter while k k + 1; %increment loop counter s end 10 %plot charge vs time Run Script
Step 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