Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using MATLab and following the script using while loops MATLAB 6.1 - Charging AED Sudden cardiac arrest is one of the leading causes of death

image text in transcribedUsing MATLab and following the script using while loops
MATLAB 6.1 - Charging AED 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 defibrillator (AED) is the only effective treatment for restoring a regular heart rhythm during sudden cardiac arrest and is an easy to operate tool for someone with no medical -https://www.redcross.org/take-a-class/learn-about-aeds The circuitry inside the AED includes a resistor (R), capacitor (C), and battery (V). When these components are connected in series, a background.- charge Q builds up on the capacitor according to the formula if there is no charge on the capacitor at timet0. Assume the AED is activated att 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 Charge Time in the variable EndCharge. Your Script C Reset ?] MATLAB Documentation 1 % Charging an AED 3 % use variable name chargeTime to store time when charge exceeds 8 units 4 ChargeTime e 5 % use variable name Endcharge to store value of charge at time-chargeTime 6 EndCharge s Suse a while loop to calculate charge and increment time in steps of e.1s 10 while %insert condidtional statement 11 %calculate charge 12 %use fprintf to display time, charge 13 %increment time 14 end 15

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

Explain the forces that influence how people handle conflict

Answered: 1 week ago