Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Sudden cardiac arrest is one of the leading causes of death in the U.S. Over 350,000 people will suffer from sudden cardiac arrest this year.
"Sudden cardiac arrest is one of the leading causes of death in the U.S. Over 350,000 people will suffer from sudden cardiac arrest this year. It can happen to anyone, anytime, anywhere and at any age. An authomated external defibirillator (AED) is the only effective treatment for restoring a regular heart rhythm -https://www. redcross org/take-a-class/lean-about-aeds The circuitry 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 urning sudden cardiac arrest and is an easy to operate tool for someone with no medical background" 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 the charge on the capacitor 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 while loop to display the time and charge every 0.1 seconds until the charge first exceeds 8 units (i.e. the last charge displayed must exceed 8). Use fprintf to display 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 time when the charge exceeds 8 units in the variable Charge Time. Save the value of charge at time = ChargeTime in the variable EndCharge. Your Script C Reset MATLAB Documentation % changing an AED 2 charge-: 4% use variable name chargeme to store time when change exceeds 8 units : 5. C-1; %the capacitance of the circuit in Farad 6V-9; % the voltage in the circuit in volt 7 R-4; %the resistance in Ohms 8 time-9.1; %time in sec : 9% use variable name EndCharge to store value of charge at time, chargeT 10 11 Xuse a while loop to calculate charge and increment time in steps of e.1 s 12 13 while chargec8 14 charge-cv (1 (-time/(R*C))); 15. fprintf("%f\t%f . , time , charge) time-time+0.1 %insert cond idt ional statement
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